-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.xml
54 lines (45 loc) · 1.66 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<project default="compile">
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="dist.dir" location="dist"/>
<property name="doc.dir" location="doc"/>
<path id="project.class.path">
<pathelement path="${classpath}"/>
<pathelement path="${build}"/>
<pathelement location="lib/jssc-2.8.0.jar"/>
<pathelement location="lib/USBtinLib-1.0.0.jar"/>
</path>
<target name="clean">
<delete dir="${build}"/>
<delete dir="${dist.dir}"/>
<delete dir="${doc.dir}"/>
</target>
<target name="compile">
<mkdir dir="${build}"/>
<javac srcdir="${src}" destdir="${build}" includeantruntime="false">
<classpath refid="project.class.path"/>
</javac>
</target>
<target name="run" depends="compile">
<java classname="USBtinLibDemo.USBtinLibDemo" fork="true">
<classpath refid="project.class.path"/>
</java>
</target>
<target name="doc">
<delete dir="${doc.dir}"/>
<mkdir dir="${doc.dir}"/>
<javadoc sourcepath="${src}" destdir="${doc.dir}" packagenames="canmon" >
<classpath refid="project.class.path"/>
</javadoc>
</target>
<target name="jar" depends="compile">
<mkdir dir="${dist.dir}"/>
<jar destfile="${dist.dir}/USBtinLibDemo.jar" basedir="${build}">
<manifest>
<attribute name="Main-Class" value="USBtinLibDemo.USBtinLibDemo"/>
</manifest>
<zipfileset src="lib/jssc-2.8.0.jar"/>
<zipfileset src="lib/USBtinLib-1.0.0.jar"/>
</jar>
</target>
</project>