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/>
|
2007-11-26 08:21:57 -08:00
|
|
|
<fail message="Please set 'JDK1.4-classes' in build.properties">
|
|
|
|
<condition>
|
|
|
|
<not>
|
|
|
|
<available file="${JDK1.4-classes}" type="file"/>
|
|
|
|
</not>
|
|
|
|
</condition>
|
|
|
|
</fail>
|
2007-11-26 12:04:32 -08:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="build" depends="init">
|
2007-10-23 12:12:27 -07:00
|
|
|
<mkdir dir="build"/>
|
|
|
|
<javac srcdir="src"
|
|
|
|
destdir="build"
|
|
|
|
source="1.4"
|
|
|
|
target="1.4"
|
2007-11-20 10:22:52 -08:00
|
|
|
bootclasspath="${JDK1.4-classes}"
|
2007-10-23 12:12:27 -07:00
|
|
|
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"/>
|
2007-11-19 10:33:02 -08:00
|
|
|
<delete dir="build-test"/>
|
2007-10-23 12:12:27 -07:00
|
|
|
<delete file="core.jar"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|