summaryrefslogtreecommitdiff
path: root/wotonomy-test/build.xml
diff options
context:
space:
mode:
authorBenjamin Culkin <scorpress@gmail.com>2024-05-19 17:56:33 -0400
committerBenjamin Culkin <scorpress@gmail.com>2024-05-19 17:56:33 -0400
commitaedc34d55462a75e329bbf342251ff6504cd117e (patch)
treebcc8f1f2352582717b484df302aeea6696b8f000 /wotonomy-test/build.xml
Initial import from SVN
Diffstat (limited to 'wotonomy-test/build.xml')
-rw-r--r--wotonomy-test/build.xml66
1 files changed, 66 insertions, 0 deletions
diff --git a/wotonomy-test/build.xml b/wotonomy-test/build.xml
new file mode 100644
index 0000000..4104184
--- /dev/null
+++ b/wotonomy-test/build.xml
@@ -0,0 +1,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>