-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.xml
75 lines (67 loc) · 2.5 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
69
70
71
72
73
74
<project name="LEGUP" default="compile">
<description>ANT file to compile and run LEGUP code</description>
<path id="LEGUP.classpath.building">
<fileset dir="lib/" />
</path>
<path id="LEGUP.classpath.running">
<pathelement path="${LEGUP.classpath.building}" />
<fileset dir="run/edu/" />
</path>
<target name="compile" description="Generates executable java code from source">
<javac
debug="true"
debuglevel="lines,vars,source"
includeantruntime="false"
srcdir="code"
destdir="run"
classpathref="LEGUP.classpath.building">
<compilerarg value="-Xlint"/>
</javac>
</target>
<target name="legup" depends="compile" description="Compiles and runs the LEGUP main program">
<!--<java classname="edu.rpi.phil.legup.Legup"
fork="true" dir="run" classpathref="LEGUP.classpath.running" />-->
<java classname="edu.rpi.phil.legup.Legup"
fork="true" dir="run" />
</target>
<target name="editor" depends="compile" description="Compiles and runs the LEGUP puzzle editor">
<!--<java classname="edu.rpi.phil.legup.editor.PuzzleEditor"
fork="true" dir="run" classpathref="LEGUP.classpath.running" />-->
<java classname="edu.rpi.phil.legup.editor.PuzzleEditor"
fork="true" dir="run" />
</target>
<target name="run" depends="legup" description="Synonym for 'legup'"/>
<!-- JAR has unresolved dependency issues -->
<target name="jar" depends="compile" description="Creates a distributable JAR file for the LEGUP program">
<delete file="run/main/LEGUP-internal.jar"/>
<jar destfile="run/main/LEGUP-internal.jar" basedir="run" includes="edu/">
<manifest>
<attribute name="Main-Class" value="edu.rpi.phil.legup.Legup"/>
</manifest>
<fileset dir="run/" />
</jar>
<copy file="run/one-jar-boot-0.95.jar" tofile="run/LEGUP.jar" overwrite="true" />
<jar destfile="run/LEGUP.jar" update="true">
<fileset dir="" includes="lib/*.jar" />
<fileset dir="run/" includes="main/LEGUP-internal.jar" />
<fileset dir="run/" includes="images/" />
</jar>
</target>
<target name="clean" description="Removes files generated from compilation">
<delete dir="run/edu"/>
<delete file="run/main/LEGUP-internal.jar"/>
<delete file="run/LEGUP.jar"/>
<delete dir="docs"/>
</target>
<target name="doc" description="Generates the documentation files">
<mkdir dir="docs"/>
<javadoc packagenames="edu.rpi.phil.legup"
sourcepath="code"
destdir="docs"
author="true"
version="true"
windowtitle="LEGUP API"
doctitle="LEGUP"
bottom="www.rpi.edu"/>
</target>
</project>