-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathbuild.xml
46 lines (40 loc) · 1.34 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
<?xml version="1.0"?>
<project name="TravisExercise" default="compile">
<property name="builddir" location="bin" />
<property name="testdir" value="test" />
<property name="testreportsdir" value="${testdir}/reports" />
<property name="libraries" value="lib" />
<path id="JUnit 4.libraryclasspath">
<pathelement location="${libraries}/junit.jar"/>
<pathelement location="${libraries}/org.hamcrest.core_1.3.0.v201303031735.jar"/>
</path>
<path id="TravisExercise.classpath">
<pathelement location="${builddir}"/>
<path refid="JUnit 4.libraryclasspath"/>
</path>
<target name="init">
<mkdir dir="${builddir}" />
</target>
<target name="compile" depends="init">
<javac destdir="${builddir}" includeantruntime="false">
<src path="src"/>
<src path="test"/>
<classpath refid="TravisExercise.classpath"/>
</javac>
</target>
<target name="inittest">
<mkdir dir="${testreportsdir}" />
</target>
<target depends="compile, inittest" name="test">
<junit printsummary="on" haltonfailure="yes" fork="yes">
<classpath refid="TravisExercise.classpath"/>
<formatter type="xml" />
<batchtest todir="${testreportsdir}">
<fileset dir="${testdir}">
<include name="**/*Test*.java" />
<exclude name="**/AllTests.java" />
</fileset>
</batchtest>
</junit>
</target>
</project>