2007-03-25 15:02:54 +00:00
|
|
|
<!-- $Id: build.xml,v 1.9 2007-03-25 15:02:54 bacon Exp $ -->
|
2007-03-24 15:07:55 +00:00
|
|
|
|
|
|
|
<project name="ase" default="release" basedir=".">
|
2007-03-23 15:33:42 +00:00
|
|
|
|
2007-03-23 15:28:10 +00:00
|
|
|
<description>
|
2007-03-23 15:33:42 +00:00
|
|
|
ANT build script for ASE
|
2007-03-23 15:28:10 +00:00
|
|
|
</description>
|
|
|
|
|
2007-03-24 15:07:55 +00:00
|
|
|
<!--
|
|
|
|
<property name="destdir" location="${basedir}/release" />
|
|
|
|
-->
|
2007-03-23 15:32:08 +00:00
|
|
|
|
2007-03-25 15:02:54 +00:00
|
|
|
<target name="release" depends="init-release,aseawk.jar,aseawk.test">
|
2007-03-24 15:07:55 +00:00
|
|
|
</target>
|
2007-03-23 15:28:10 +00:00
|
|
|
|
2007-03-25 15:02:54 +00:00
|
|
|
<target name="debug" depends="init-debug,aseawk.jar,aseawk.test">
|
2007-03-24 15:07:55 +00:00
|
|
|
</target>
|
2007-03-23 15:38:10 +00:00
|
|
|
|
2007-03-24 15:07:55 +00:00
|
|
|
<target name="init-release">
|
|
|
|
<property name="destdir" location="${basedir}/release" />
|
2007-03-25 15:02:54 +00:00
|
|
|
<property name="libdir" location="${destdir}/lib" />
|
|
|
|
<property name="bindir" location="${destdir}/bin" />
|
|
|
|
<mkdir dir="${libdir}" />
|
|
|
|
<mkdir dir="${bindir}" />
|
2007-03-24 15:07:55 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="init-debug">
|
|
|
|
<property name="destdir" location="${basedir}/debug" />
|
2007-03-25 15:02:54 +00:00
|
|
|
<property name="libdir" location="${destdir}/lib" />
|
|
|
|
<property name="bindir" location="${destdir}/bin" />
|
|
|
|
<mkdir dir="${libdir}" />
|
|
|
|
<mkdir dir="${bindir}" />
|
2007-03-24 15:07:55 +00:00
|
|
|
</target>
|
|
|
|
|
2007-03-25 15:02:54 +00:00
|
|
|
<target name="aseawk.jar" description="compile the awk classes">
|
|
|
|
<javac srcdir="awk" destdir="${libdir}" />
|
|
|
|
|
|
|
|
<jar jarfile="${libdir}/aseawk.jar"
|
|
|
|
basedir="${libdir}"
|
|
|
|
includes="ase/awk/*.class" />
|
|
|
|
|
|
|
|
<delete dir="${libdir}/ase" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="aseawk.test" depends="aseawk.jar"
|
|
|
|
description="compile the awk test classes">
|
|
|
|
|
|
|
|
<javac srcdir="test/awk"
|
|
|
|
classpath="${libdir}/aseawk.jar"
|
|
|
|
destdir="${bindir}" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="aseawk.applet" depends="aseawk.jar"
|
|
|
|
description="compile the awk test applet">
|
|
|
|
|
|
|
|
<javac srcdir="test/awk"
|
|
|
|
classpath="${libdir}/aseawk.jar"
|
|
|
|
destdir="${bindir}" />
|
2007-03-23 15:28:10 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="clean" description="clean up">
|
2007-03-24 15:19:10 +00:00
|
|
|
<delete dir="${basedir}/release"
|
|
|
|
includes="**/*.class,**/*.jar" />
|
|
|
|
<delete dir="${basedir}/debug"
|
|
|
|
includes="**/*.class,**/*.jar" />
|
2007-03-23 15:28:10 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|