-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
48 lines (43 loc) · 1.38 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
<project name="cs276-pa4" default="compile" basedir=".">
<description>
simple example bin file
</description>
<!-- set global properties for this bin -->
<property name="src" location="src"/>
<property name="bin" location="classes"/>
<property name="program" location="cs276-pa4"/>
<property environment="env"/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the bin directory structure used by compile -->
<mkdir dir="${bin}"/>
</target>
<!-- classpaths -->
<path id="compile.classpath">
<pathelement location="classes"/>
<fileset dir=".">
<include name="lib/weka.jar"/>
<include name="lib/ejml-0.23.jar"/>
</fileset>
</path>
<target name="compile" depends="init"
description="compile the source " >
<!-- Compile the java code from ${src} into ${bin} -->
<javac srcdir="${src}" destdir="${bin}" debug="true" includeantruntime="false">
<classpath refid="compile.classpath"/>
</javac>
</target>
<target name="dist" depends="compile"
description="generate the distribution" >
<jar jarfile="${program}.jar">
<fileset dir="${bin}"/>
</jar>
</target>
<target name="clean"
description="clean up" >
<!-- Delete the ${bin} directory and the jar file -->
<delete dir="${bin}"/>
<delete file="${program}.jar"/>
</target>
</project>