-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathbuild.xml
More file actions
22 lines (22 loc) · 836 Bytes
/
build.xml
File metadata and controls
22 lines (22 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0" ?>
<project name="example" default="test">
<path id="build.classpath">
<fileset dir="lib" includes="*.jar" />
</path>
<path id="test.classpath">
<path refid="build.classpath" />
<pathelement path="build" />
</path>
<target name="test" description="Compile Unit Tests">
<mkdir dir="build" />
<javac srcdir="." destdir="build" classpathref="build.classpath" />
<junit printsummary="true" haltonfailure="no" failureproperty="test.failed">
<formatter type="xml" />
<classpath refid="test.classpath" />
<batchtest todir="results">
<fileset dir="build" includes="**/*.class" />
</batchtest>
</junit>
<fail message="Tests FAILED" if="test.failed" />
</target>
</project>