qse/ase/build.xml

69 lines
1.8 KiB
XML

<!-- $Id: build.xml,v 1.9 2007-03-25 15:02:54 bacon Exp $ -->
<project name="ase" default="release" basedir=".">
<description>
ANT build script for ASE
</description>
<!--
<property name="destdir" location="${basedir}/release" />
-->
<target name="release" depends="init-release,aseawk.jar,aseawk.test">
</target>
<target name="debug" depends="init-debug,aseawk.jar,aseawk.test">
</target>
<target name="init-release">
<property name="destdir" location="${basedir}/release" />
<property name="libdir" location="${destdir}/lib" />
<property name="bindir" location="${destdir}/bin" />
<mkdir dir="${libdir}" />
<mkdir dir="${bindir}" />
</target>
<target name="init-debug">
<property name="destdir" location="${basedir}/debug" />
<property name="libdir" location="${destdir}/lib" />
<property name="bindir" location="${destdir}/bin" />
<mkdir dir="${libdir}" />
<mkdir dir="${bindir}" />
</target>
<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}" />
</target>
<target name="clean" description="clean up">
<delete dir="${basedir}/release"
includes="**/*.class,**/*.jar" />
<delete dir="${basedir}/debug"
includes="**/*.class,**/*.jar" />
</target>
</project>