blob: 41041847ae4440f155bd12d35e1505be897459d6 (
plain)
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
|
<project name="wotonomy" default="all" basedir=".">
<!--
Sets the compiler property.
Options are "classic" or "modern" or "jikes".
-->
<property name="build.compiler" value="modern"/>
<!--
Builds the application.
Requires wotonomy.jar from the parent directory.
-->
<target name="all">
<javac srcdir="WEB-INF/classes" destdir="WEB-INF/classes" includes="**/*.java">
<classpath>
<pathelement location="../wotonomy.jar" />
<pathelement location="../lib/servlet.jar" />
</classpath>
</javac>
</target>
<target name="war">
<delete file="MyTest.woa.war"/>
<mkdir dir="WEB-INF/lib"/>
<copy file="../wotonomy.jar" todir="WEB-INF/lib"/>
<jar jarfile="MyTest.woa.war" basedir="."
includes="WEB-INF"/>
</target>
<!--
Builds an executable jar file containing
the license file, anything in the images
directory, and everything in net/wotonomy,
but excludes all .java source files.
-->
<target name="library">
<delete file="wotonomy.jar"/>
<jar jarfile="wotonomy.jar" basedir="."
manifest="manifest.txt"
includes="license.txt,net/**,images/**,com/**,gui/**,org/**"
excludes="**/*.java"/>
</target>
<!--
Deletes all class files in the wotonomy
directories, and any recognized temp files.
-->
<target name="clean">
<delete dir="." includes="**/*.class,**/*.~*"/>
</target>
<!--
Runs the test suite.
-->
<target name="run" depends="all">
<java classname="net.wotonomy.test.Test" fork="yes"
jvmargs="" args="-monitor" >
<classpath>
<pathelement location="." />
<pathelement location="lib/xp.jar" />
<pathelement location="lib/servlet.jar" />
</classpath>
</java>
</target>
</project>
|