-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
43 lines (36 loc) · 1.35 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
<project name="ba-dua-example">
<property name="main.src.dir" value="src/main/java" />
<property name="test.src.dir" value="src/test/java" />
<property name="main.build.dir" value="build/main" />
<property name="test.build.dir" value="build/test" />
<target name="clean">
<delete dir="build" />
</target>
<target name="compile">
<mkdir dir="${main.build.dir}" />
<javac srcdir="${main.src.dir}" destdir="${main.build.dir}" debug="true" includeantruntime="false" nowarn="true" />
</target>
<target name="test-compile" depends="compile">
<mkdir dir="${test.build.dir}" />
<javac srcdir="${test.src.dir}" destdir="${test.build.dir}" includeantruntime="false" nowarn="true">
<classpath>
<pathelement location="lib/junit-3.8.2.jar" />
<pathelement location="${main.build.dir}" />
</classpath>
</javac>
</target>
<target name="test" depends="test-compile">
<junit fork="true" forkmode="once">
<jvmarg line="-javaagent:lib/ba-dua-agent-rt-0.4.0-all.jar -Doutput.file=build/badua.ser" />
<classpath>
<pathelement location="lib/junit-3.8.2.jar" />
<pathelement location="${main.build.dir}" />
<pathelement location="${test.build.dir}" />
</classpath>
<formatter type="brief" usefile="false" />
<batchtest>
<fileset dir="${test.src.dir}" includes="**/*Test.java" />
</batchtest>
</junit>
</target>
</project>