-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
71 lines (60 loc) · 1.92 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
<?xml version="1.0"?>
<project name="amino" default="compile-tests" basedir=".">
<property name="build.dir" location="build" />
<property name="build.prod.dir" location="${build.dir}/main" />
<property name="build.test.dir" location="${build.dir}/test" />
<property name="doc.dir" location="doc" />
<property name="src.dir" location="src/main/java" />
<property name="test.dir" location="src/test/java" />
<property name="lib.dir" location="lib" />
<path id="project.classpath">
<pathelement location="${build.prod.dir}" />
</path>
<path id="project.test.classpath">
<path refid="project.classpath" />
<pathelement location="${build.test.dir}" />
<fileset dir="${lib.dir}">
<include name="*.jar" />
</fileset>
</path>
<target name="prepare">
<mkdir dir="${build.prod.dir}" />
<mkdir dir="${build.test.dir}" />
</target>
<target name="compile" depends="prepare">
<javac srcdir="${src.dir}" destdir="${build.prod.dir}">
<classpath refid="project.classpath" />
</javac>
</target>
<target name="compile-tests" depends="compile">
<javac srcdir="${test.dir}" destdir="${build.test.dir}">
<classpath refid="project.test.classpath" />
</javac>
</target>
<target name="test" depends="compile-tests">
<junit haltonfailure="true">
<classpath refid="project.test.classpath" />
<formatter type="brief" usefile="false" />
<batchtest>
<fileset dir="${build.test.dir}" includes="**/AllTests.class" />
</batchtest>
</junit>
</target>
<target name="clean">
<delete dir="${build.dir}" />
</target>
<target name="clean-doc">
<delete dir="${doc.dir}" />
</target>
<target name="javadoc" description="Generate Java documentation">
<mkdir dir="${doc.dir}" />
<javadoc destdir="${doc.dir}" verbose="true">
<fileset dir="${src.dir}">
<include name="**/*.java" />
</fileset>
<fileset dir="${test.dir}">
<include name="**/*.java" />
</fileset>
</javadoc>
</target>
</project>