-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathbuild.xml
More file actions
44 lines (36 loc) · 1.35 KB
/
build.xml
File metadata and controls
44 lines (36 loc) · 1.35 KB
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
<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.5"/>
<property name="ant.build.javac.target" value="1.5"/>
<path id="project.class.path">
<pathelement path="${classpath}"/>
<pathelement path="${build}"/>
<pathelement location="lib/jssc-2.8.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.5.0_22/lib/rt.jar">
<classpath refid="project.class.path"/>
</javac>
</target>
<target name="doc">
<delete dir="${doc.dir}"/>
<mkdir dir="${doc.dir}"/>
<javadoc sourcepath="${src}" destdir="${doc.dir}" packagenames="de.fischl.usbtin" >
<classpath refid="project.class.path"/>
</javadoc>
</target>
<target name="jar" depends="compile">
<mkdir dir="${dist.dir}"/>
<jar destfile="${dist.dir}/USBtinLib.jar" basedir="${build}">
</jar>
</target>
</project>