-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
76 lines (64 loc) · 2.09 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<project name="segment-trees" default="test">
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="build/java"/>
<mkdir dir="build/test"/>
</target>
<path id="src.path">
<pathelement path="build/java"/>
</path>
<path id="compile.path">
<path refid="src.path"/>
<pathelement path="lib/asm-4.1.jar"/>
<pathelement path="lib/asm-commons-4.1.jar"/>
</path>
<path id="unit.test.path">
<path refid="compile.path"/>
<pathelement path="build/test/"/>
<pathelement path="lib/junit-4.11.jar"/>
<pathelement path="lib/hamcrest-core-1.3.jar"/>
</path>
<target name="compile" depends="init">
<javac debug="yes" destdir="build/java" includeantruntime="no">
<src path="src/java"/>
<classpath refid="compile.path"/>
</javac>
</target>
<target name="compile-tests" depends="compile">
<javac debug="yes" srcdir="src/test" destdir="build/test" includeantruntime="false">
<classpath refid="unit.test.path"/>
</javac>
</target>
<target name="javadocs" description="create Javadocs">
<mkdir dir="javadoc/"/>
<javadoc destdir="javadoc/">
<classpath refid="compile.path"/>
<fileset dir="src/java" includes="**/*.java" />
</javadoc>
</target>
<target name="test" depends="compile-tests">
<junit printsummary="no" haltonfailure="yes" showoutput="no">
<jvmarg value="-Dfile.encoding=UTF-8"/>
<classpath refid="unit.test.path"/>
<assertions>
<enable package="com.changingbits"/>
</assertions>
<formatter type="plain" usefile="no"/>
<batchtest fork="yes">
<fileset dir="src/test">
<include name="**/Test*.java"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="dist" depends="compile" description="generate the distribution" >
<mkdir dir="dist"/>
<jar jarfile="dist/segment-trees-0.1.jar" basedir="build/java"/>
</target>
<target name="clean" description="clean up" >
<delete dir="build"/>
<delete dir="dist"/>
</target>
</project>