summaryrefslogtreecommitdiffstats
path: root/util/build.xml
diff options
context:
space:
mode:
Diffstat (limited to 'util/build.xml')
-rw-r--r--util/build.xml38
1 files changed, 38 insertions, 0 deletions
diff --git a/util/build.xml b/util/build.xml
new file mode 100644
index 000000000..7618057ab
--- /dev/null
+++ b/util/build.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0"?>
+<project name="util" default="all" basedir=".">
+
+ <import file="../build/build-common.xml"/>
+
+ <path id="util.test.src.path">
+ <path refid="util.src.path"/>
+ <fileset dir="${basedir}/../lib">
+ <include name="junit/*.jar"/>
+ </fileset>
+ </path>
+
+ <path id="util.src.path">
+ </path>
+
+ <target name="compile" depends="init">
+ <srccompile project="util" path="util.src.path"/>
+ </target>
+
+ <target name="test:compile" depends="compile">
+ <testcompile project="util" path="util.test.src.path"/>
+ </target>
+
+ <target name="test" depends="test:compile">
+ <testrun project="util" path="util.test.src.path" suite="UtilModuleTests"/>
+ </target>
+
+ <target name="jar" depends="compile">
+ <delete file="${build.ajdir}/jars/util.jar"/>
+ <zip destfile="${build.ajdir}/jars/util.jar">
+ <fileset dir="bin">
+ <include name="**/*"/>
+ </fileset>
+ </zip>
+ </target>
+
+</project>
+