-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathbuild.xml
85 lines (81 loc) · 3.65 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="build" name="ProPPR">
<property environment="env"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.8"/>
<property name="source" value="1.8"/>
<property name="build" value="bin"/>
<property name="junit.results" value="test-results"/>
<property name="ant.junit.failureCollector" value="${junit.results}/FailedTests"/>
<path id="ProPPR.classpath">
<pathelement location="lib/bsh-2.0b4.jar"/>
<pathelement location="lib/commons-cli-1.3.1.jar"/>
<pathelement location="lib/concurrentlinkedhashmap-lru-1.3.1.jar"/>
<pathelement location="lib/geronimo-jta_1.1_spec-1.1.1.jar"/>
<pathelement location="lib/la4j-0.4.5.jar"/>
<pathelement location="lib/log4j-1.2.16.jar"/>
<pathelement location="lib/lucene-core-3.6.2.jar"/>
<pathelement location="lib/org.apache.servicemix.bundles.jline-0.9.94_1.jar"/>
<pathelement location="lib/scala-library-2.10.0.jar"/>
<pathelement location="lib/trove-3.0.3.jar"/>
<pathelement location="lib/tuprolog.jar"/>
<pathelement location="lib/java-bloomfilter.jar"/>
</path>
<path id="ProPPRTests.classpath">
<pathelement location="lib/junit-4.11-SNAPSHOT.jar"/>
<pathelement location="lib/junit-dep-4.11-SNAPSHOT.jar"/>
<path refid="ProPPR.classpath"/>
</path>
<target name="init">
<mkdir dir="${build}"/>
</target>
<target name="clean">
<delete dir="${build}"/>
</target>
<target name="decruft">
<delete dir="${junit.results}"/>
<delete verbose="true">
<fileset dir="." includes="compiled*.pl"/>
<fileset dir="scripts" includes="*.pyc"/>
<fileset dir="src/scripts" includes="*.pyc"/>
</delete>
</target>
<target name="cleanall" depends="clean,decruft"/>
<target name="build" depends="build-subprojects,build-project"/>
<target name="build-subprojects"/>
<target name="build-project" depends="init" >
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="${build}" source="${source}" target="${target}" includeantruntime="false">
<src path="src/java/main"/>
<classpath refid="ProPPR.classpath"/>
</javac>
<copy todir="${build}">
<fileset dir="src/java/main">
<exclude name="**/*.java"/>
</fileset>
</copy>
</target>
<target name="build-tests" depends="init">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="${build}" source="${source}" target="${target}" includeantruntime="false">
<src path="src/java/test"/>
<classpath refid="ProPPRTests.classpath"/>
</javac>
</target>
<target name="test" depends="build,build-tests" description="Run unit tests">
<delete dir="${junit.results}"/>
<mkdir dir="${junit.results}"/>
<junit fork="yes" errorProperty="test.failed" failureProperty="test.failed" >
<classpath>
<path refid="ProPPRTests.classpath" />
<path location="${build}" />
</classpath>
<formatter type="xml"/>
<batchtest todir="${junit.results}">
<fileset dir="${build}" includes="**/*Test.class"/>
</batchtest>
</junit>
<fail message="Tests failed. Please see test reports" if="test.failed" />
<echo message="All tests passed."/>
</target>
</project>