-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
48 lines (40 loc) · 1.51 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="build" name="prologj">
<property name="target" value="1.8"/>
<property name="source" value="1.8"/>
<property environment="env"/>
<property name="junit.output.dir" value="junit"/>
<property name="debuglevel" value="source,lines,vars"/>
<path id="junit4.classpath">
<pathelement location="/usr/share/java/junit4.jar"/>
<pathelement location="/usr/share/java/hamcrest-core.jar"/>
</path>
<path id="prologj.classpath">
<pathelement location="bin"/>
<path refid="junit4.classpath"/>
</path>
<target name="init">
<mkdir dir="bin"/>
</target>
<target name="clean">
<delete dir="bin"/>
</target>
<target name="build" depends="init" >
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="bin" includeantruntime="false" source="${source}" target="${target}">
<src path="src"/>
<src path="test"/>
<classpath refid="prologj.classpath"/>
</javac>
</target>
<target name="test" depends="build">
<junit printsummary="yes" haltonfailure="yes">
<classpath refid="prologj.classpath"/>
<batchtest fork="yes" todir="${dir.report.unittests.xml}">
<fileset dir="test">
<include name="**/*Test*.java"/>
</fileset>
</batchtest>
</junit>
</target>
</project>