-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
executable file
·67 lines (57 loc) · 2.1 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
<project default="run">
<property name="jython.jar" location="./thirdparty/jython-standalone-2.5.3.jar" />
<!-- Aliases -->
<target name="release" depends="jar" />
<target name="mtool" depends="masktool" />
<target name="ptool" depends="particletool" />
<target name="run" depends="checkdeps, build, exec">
</target>
<target name="checkdeps">
<available file="${jython.jar}" property="jython.jar.present" />
<fail message="Missing dependency: ${jython.jar}" unless="${jython.jar.present}" />
</target>
<target name="clean">
<delete dir="bin" quiet="true" />
</target>
<target name="build">
<mkdir dir="bin/debug" />
<javac srcdir="src"
destdir="bin/debug"
debug="true"
includeAntRuntime="false">
<classpath>
<pathelement location="${jython.jar}" />
</classpath>
<!--compilerarg value="-Xlint" /-->
</javac>
<copy todir="bin/debug/assets">
<fileset dir="assets" />
</copy>
</target>
<target name="exec">
<java classname="kipper.Main" fork="true">
<classpath>
<pathelement location="bin/debug" />
<pathelement location="${jython.jar}" />
</classpath>
</java>
</target>
<target name="jar" depends="build">
<mkdir dir="bin/release" />
<jar destfile="bin/release/kipper.jar"
manifest="src/kipper/manifest">
<fileset dir="bin/debug" />
</jar>
</target>
<target name="masktool" depends="build">
<java classpath="bin/debug" classname="kipper.tools.MaskTool" fork="true" />
</target>
<target name="particletool" depends="build">
<java classname="kipper.tools.ParticleTool" fork="true">
<classpath>
<pathelement location="bin/debug" />
<pathelement location="${jython.jar}" />
</classpath>
</java>
</target>
</project>