forked from birchsport/titanic
/
build.xml
64 lines (56 loc) · 1.87 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
<project name="Titanic" default="compile" basedir=".">
<!-- set global properties for this build -->
<property name="src" location="src" />
<property name="build" location="build" />
<property name="dist" location="dist" />
<property name="lib" location="lib" />
<path id="project.classpath">
<fileset dir="${lib}">
<include name="*.jar" />
</fileset>
</path>
<target name="init">
<tstamp />
<mkdir dir="${build}" />
</target>
<target name="compile" depends="init" description="compile the source ">
<javac srcdir="${src}" destdir="${build}" classpathref="project.classpath" includeantruntime="false" />
</target>
<target name="clean" description="clean up">
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}" />
</target>
<!-- =================================
target: train
================================= -->
<target name="train" depends="compile" description="Trains the model">
<java classname="titanic.weka.Train">
<classpath>
<path refid="project.classpath" />
<path location="${build}" />
</classpath>
</java>
</target>
<!-- =================================
target: predict
================================= -->
<target name="predict" depends="compile" description="Creates the prediction">
<java classname="titanic.weka.Predict">
<classpath>
<path refid="project.classpath" />
<path location="${build}" />
</classpath>
</java>
</target>
<!-- =================================
target: verify
================================= -->
<target name="verify" depends="compile" description="Verifies the prediction">
<java classname="titanic.weka.Verify">
<classpath>
<path refid="project.classpath" />
<path location="${build}" />
</classpath>
</java>
</target>
</project>