73 lines
2.0 KiB
XML
73 lines
2.0 KiB
XML
<!-- $Id: build.xml,v 1.10 2007-04-10 15:08:12 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}" />
|
|
|
|
<unjar src="${libdir}/aseawk.jar" dest="${bindir}" />
|
|
<jar jarfile="${bindir}/aseawk.jar"
|
|
basedir="${bindir}"
|
|
includes="**/*.class" />
|
|
<delete>
|
|
<fileset dir="${bindir}" includes="*.class" />
|
|
</delete>
|
|
<delete dir="${bindir}/ase" verbose="true" />
|
|
<delete dir="${bindir}/META-INF" verbose="true" />
|
|
|
|
<copy file="test/awk/AseAwkApplet.html" todir="${bindir}" />
|
|
</target>
|
|
|
|
<target name="clean" description="clean up">
|
|
<delete dir="${basedir}/release"
|
|
includes="**/*.class,**/*.jar" verbose="true"/>
|
|
<delete dir="${basedir}/debug"
|
|
includes="**/*.class,**/*.jar" verbose="true"/>
|
|
</target>
|
|
|
|
</project>
|