2007-04-12 11:28:14 +00:00
|
|
|
<!-- $Id: build.xml,v 1.11 2007-04-12 11:28:14 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}" />
|
|
|
|
|
2007-04-10 15:08:12 +00:00
|
|
|
<unjar src="${libdir}/aseawk.jar" dest="${bindir}" />
|
|
|
|
<jar jarfile="${bindir}/aseawk.jar"
|
|
|
|
basedir="${bindir}"
|
2007-04-12 11:28:14 +00:00
|
|
|
includes="**/*.class"
|
|
|
|
manifest="test/awk/manifest" />
|
2007-04-10 15:08:12 +00:00
|
|
|
<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}" />
|
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"
|
2007-04-10 15:08:12 +00:00
|
|
|
includes="**/*.class,**/*.jar" verbose="true"/>
|
2007-03-24 15:19:10 +00:00
|
|
|
<delete dir="${basedir}/debug"
|
2007-04-10 15:08:12 +00:00
|
|
|
includes="**/*.class,**/*.jar" verbose="true"/>
|
2007-03-23 15:28:10 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|