diff options
Diffstat (limited to 'wotonomy-web-test/build.xml')
| -rw-r--r-- | wotonomy-web-test/build.xml | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/wotonomy-web-test/build.xml b/wotonomy-web-test/build.xml new file mode 100644 index 0000000..4104184 --- /dev/null +++ b/wotonomy-web-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> |
