2007-10-23 12:12:27 -07:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project name="core" default="build">
|
|
|
|
|
2007-11-14 07:27:06 -08:00
|
|
|
<property file="../build.properties"/>
|
2007-10-23 12:12:27 -07:00
|
|
|
|
|
|
|
<target name="init">
|
|
|
|
<tstamp/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="build" depends="init">
|
|
|
|
<mkdir dir="build"/>
|
|
|
|
<javac srcdir="src"
|
|
|
|
destdir="build"
|
|
|
|
source="1.4"
|
|
|
|
target="1.4"
|
|
|
|
bootclasspath="${JDK1.4-home}/jre/lib/rt.jar"
|
|
|
|
optimize="true"
|
|
|
|
debug="true"
|
|
|
|
deprecation="true"
|
|
|
|
fork="true"/>
|
|
|
|
<jar jarfile="core.jar" basedir="build"/>
|
|
|
|
</target>
|
|
|
|
|
2007-11-14 07:27:06 -08:00
|
|
|
<target name="test" depends="init,build">
|
|
|
|
<mkdir dir="build-test"/>
|
|
|
|
<javac srcdir="test/src"
|
|
|
|
destdir="build-test"
|
|
|
|
debug="true"
|
|
|
|
deprecation="true">
|
|
|
|
<classpath>
|
|
|
|
<pathelement location="build"/>
|
|
|
|
</classpath>
|
|
|
|
</javac>
|
|
|
|
<junit printsummary="on" haltonfailure="on" haltonerror="on">
|
|
|
|
<formatter type="plain" usefile="false"/>
|
|
|
|
<classpath>
|
|
|
|
<pathelement location="build"/>
|
|
|
|
<pathelement location="build-test"/>
|
|
|
|
</classpath>
|
|
|
|
<assertions>
|
|
|
|
<enable/>
|
|
|
|
</assertions>
|
|
|
|
<batchtest>
|
|
|
|
<fileset dir="test/src">
|
|
|
|
<include name="**/*.java"/>
|
|
|
|
</fileset>
|
|
|
|
</batchtest>
|
|
|
|
</junit>
|
|
|
|
</target>
|
|
|
|
|
2007-10-23 12:12:27 -07:00
|
|
|
<target name="clean">
|
|
|
|
<delete dir="build"/>
|
|
|
|
<delete file="core.jar"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|