forked from phylogeography/SPREADv1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
69 lines (58 loc) · 1.91 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="SPREAD" default="help" basedir=".">
<property name="build.sysclasspath" value="last"/>
<property name="main_class_SpreadApp" value="gui.SpreadApp" />
<target name="help">
<echo message="Common build targets:" />
<echo message="jar - Builds spread.jar" />
<echo message="build - Same as clean+jar" />
<echo message="compile - Compiles TestlabOutbreak classes" />
<echo message="clean - Remove all *.class and spread.jar" />
</target>
<property file="build.properties"/>
<property name="buildDir" value="build" />
<path id="classpath">
<pathelement path="." />
<fileset dir="lib">
<include name="*.jar" />
</fileset>
<pathelement location="." />
</path>
<target name="build" depends="clean,jar"/>
<target name="jar" depends="compile">
<mkdir dir="dist"/>
<jar jarfile="dist/spread.jar">
<manifest>
<attribute name="Built-By" value="${user.name}" />
<attribute name="Main-Class" value="${main_class_SpreadApp}" />
</manifest>
<fileset dir="classes"/>
<zipgroupfileset dir="lib" includes="core.jar"/>
<zipgroupfileset dir="lib" includes="jebl.jar"/>
<zipgroupfileset dir="lib" includes="org.boehn.kmlframework_20090320.jar"/>
<zipgroupfileset dir="lib" includes="colt.jar"/>
<zipgroupfileset dir="lib" includes="ColorPicker.jar"/>
<!--
<zipgroupfileset dir="lib" includes="quaqua.jar"/>
-->
</jar>
</target>
<target name="compile">
<mkdir dir="classes"/>
<mkdir dir="classes/icons"/>
<javac
source="1.6" target="1.6"
srcdir="src"
destdir="classes"
classpathref="classpath"/>
<copy todir="classes/icons">
<fileset dir="src/icons">
<include name="**/*.png" />
</fileset>
</copy>
</target>
<target name="clean">
<delete dir="classes"/>
<delete dir="dist"/>
</target>
</project>