-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
56 lines (48 loc) · 1.68 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
<project name="ArbitCheck" default="dist" basedir=".">
<property name="src.main" location="src/main/java"/>
<property name="src.examples" location="src/test/java"/>
<property name="build" location="build"/>
<property name="build.main" location="${build}/main"/>
<property name="build.examples" location="${build}/examples"/>
<property name="dist" location="dist"/>
<property name="dist.jar" value="arbitcheck.jar"/>
<property name="dist.examples.jar" value="arbitcheck-examples.jar"/>
<property name="debug" value="off"/>
<property name="ant.build.javac.source" value="1.5"/>
<property name="ant.build.javac.target" value="1.5"/>
<target name="init">
<mkdir dir="${build}"/>
<mkdir dir="${build.main}"/>
<mkdir dir="${build.examples}"/>
<mkdir dir="${dist}"/>
</target>
<target name="compile" depends="init">
<javac srcdir="${src.main}"
destdir="${build.main}"
debug="${debug}"
includeantruntime="false">
<classpath>
<fileset dir="lib"/>
</classpath>
</javac>
</target>
<target name="compile-examples" depends="init,compile">
<javac srcdir="${src.examples}"
destdir="${build.examples}"
debug="${debug}"
includeantruntime="false">
<classpath>
<fileset dir="lib"/>
<pathelement location="${build.main}"/>
</classpath>
</javac>
</target>
<target name="dist" depends="compile,compile-examples">
<jar jarfile="${dist}/${dist.jar}" basedir="${build.main}"/>
<jar jarfile="${dist}/${dist.examples.jar}" basedir="${build.examples}"/>
</target>
<target name="clean">
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>