-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
61 lines (50 loc) · 1.8 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
<project default="build">
<property name="major" value="0"/>
<property name="minor" value="2"/>
<property name="patch" value="0"/>
<target name="build" depends="compile">
<jar destfile="build/org.roettig.MLToolbox-${major}.${minor}.${patch}.jar" basedir="build/classes"/>
</target>
<target name="compile" depends="prepare">
<!-- compile class files -->
<javac srcdir="." destdir="build/classes" includeantruntime="no">
<classpath>
<pathelement location="lib/Jama-1.0.2.jar"/>
<pathelement location="lib/jnisvmlight.jar"/>
<pathelement location="lib/org.roettig.maths.jar"/>
<pathelement location="lib/junit.jar"/>
<pathelement location="lib/weka.jar"/>
</classpath>
</javac>
<!-- copy sources -->
<copy todir="build/classes">
<fileset dir="src" includes="**/*.java"/>
<fileset dir="src" includes="**/*.dat"/>
</copy>
</target>
<target name="test" depends="build">
<junit printsummary="yes" haltonfailure="yes" showoutput="yes" fork="true">
<env key="LD_LIBRARY_PATH" path="lib"/>
<classpath>
<pathelement location="build/org.roettig.MLToolbox-${major}.${minor}.${patch}.jar"/>
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
</classpath>
<!--<formatter type="plain"/>-->
<test name="org.roettig.MLToolbox.test.base.BaseTest"/>
<test name="org.roettig.MLToolbox.test.base.KernelTest"/>
<test name="org.roettig.MLToolbox.test.base.ModelTest"/>
<test name="org.roettig.MLToolbox.test.base.ModelValidationTest"/>
<test name="org.roettig.MLToolbox.test.base.QualityMeasureTest"/>
</junit>
</target>
<target name="prepare" depends="clean">
<delete dir="build"/>
<mkdir dir="build"/>
<mkdir dir="build/classes"/>
</target>
<target name="clean">
<delete dir="build"/>
</target>
</project>