-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathbuild.xml
72 lines (62 loc) · 3.09 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
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="all" name="GameOfLife">
<target name="init" description="Initialize script.">
<property name="build.compiler" value="modern"/>
<property name="dest" value="build"/>
<property name="web" value="web"/>
<property name="dist" value="dist"/>
<property name="src" value="src"/>
</target>
<target depends="init" name="debug" description="Compile for debugging.">
<javac debug="true" deprecation="false" srcdir="${src}" destdir="${dest}" target="1.1"/>
</target>
<target depends="init" name="compile" description="Compile for release.">
<javac debug="false" deprecation="false" srcdir="${src}" destdir="${dest}" optimize="true" target="1.1"/>
</target>
<target depends="init,compile" name="jar" description="Create applet jar file.">
<jar basedir="${dest}" compress="true" includes="**/GameOfLife*.class **/Shape*.class **/Cell*.class" jarfile="${web}/gameoflife.jar"/>
</target>
<target depends="init,compile" name="s-jar" description="Create standalone jar file.">
<jar basedir="${dest}" compress="true" includes="**/*" manifest="misc/MANIFEST.MF" jarfile="${dist}/GameOfLife.jar"/>
</target>
<target depends="init,compile" name="winexe" description="Create executable.">
<exec executable="C:\Program Files\Microsoft SDK for Java 4.0\Bin\jexegen.exe">
<arg line="/main:org.bitstorm.gameoflife.StandaloneGameOfLife /out:${dist}/GameOfLife.exe /base:${dest} /w /v /r *.*"/>
</exec>
</target>
<target depends="init,jar,s-jar" description="Build everything." name="all">
<echo message="Application ${ant.project.name} built."/>
</target>
<target depends="init" description="Clean all build products." name="clean">
<delete>
<fileset dir="build/org/bitstorm/gameoflife">
<include name="*.class"/>
</fileset>
<fileset dir="build/org/bitstorm/util">
<include name="*.class"/>
</fileset>
</delete>
<delete file="GameOfLife.jar"/>
</target>
<target name="javadoc" depends="init">
<javadoc destdir="docs"
access="private"
source="1.4"
use="true"
notree="false"
nonavbar="false"
noindex="false"
splitindex="true"
author="true"
version="true"
nodeprecatedlist="false"
nodeprecated="false"
packagenames="org.bitstorm.gameoflife,org.bitstorm.util"
sourcepath="${src}"
classpath="."
doctitle="Game of Life 1.5 API"
header="Game of Life 1.5"
bottom="<p>This API descibes the <a href='http://www.bitstorm.org/gameoflife/' target='_top'>Game of Life</a> program, written by Edwin Martin. The <a href='http://www.bitstorm.org/gameoflife/code/' target='_top'>source code</a> is available online too.</p><p>Copyright 1996-2004 <a href='http://www.bitstorm.org/edwin/en/' target='_top'>Edwin Martin</a> &lt;<a href='mailto:[email protected]' target='_top'>[email protected]</a>&gt;.</p>"
/>
</target>
</project>