-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.xml
61 lines (51 loc) · 1.9 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
55
56
57
58
59
60
61
<?xml version="1.0" encoding="UTF-8"?>
<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"/>
<property name="ant.build.javac.source" value="1.6"/>
<property name="ant.build.javac.target" value="1.6"/>
<path id="project.class.path">
<pathelement path="${classpath}"/>
<pathelement path="${build}"/>
<pathelement location="lib/jssc-2.9.1.jar"/>
<pathelement location="lib/USBtinLib-1.2.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" bootclasspath="/opt/jre1.6.0_45/lib/rt.jar">
<classpath refid="project.class.path"/>
</javac>
<copy todir="build/res">
<fileset dir="res"/>
</copy>
</target>
<target name="run" depends="compile">
<java classname="USBtinViewer" 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="" >
<classpath refid="project.class.path"/>
</javadoc>
</target>
<target name="jar" depends="compile">
<mkdir dir="${dist.dir}"/>
<jar destfile="${dist.dir}/USBtinViewer.jar" basedir="${build}">
<manifest>
<attribute name="Main-Class" value="USBtinViewer"/>
</manifest>
<zipfileset src="lib/jssc-2.9.1.jar"/>
<zipfileset src="lib/USBtinLib-1.2.0.jar"/>
</jar>
</target>
</project>