diff options
author | ehilsdal <ehilsdal> | 2004-05-21 06:19:07 +0000 |
---|---|---|
committer | ehilsdal <ehilsdal> | 2004-05-21 06:19:07 +0000 |
commit | cdfb3edaeecc171e912040fc9c68fe002bfa459d (patch) | |
tree | 8bfd6f7721ac9d7616725b34c03b8b42835c1094 /bcel-builder/build.xml | |
parent | 68bc96dd1086d5832e96395b09f49da2b8e5f995 (diff) | |
download | aspectj-cdfb3edaeecc171e912040fc9c68fe002bfa459d.tar.gz aspectj-cdfb3edaeecc171e912040fc9c68fe002bfa459d.zip |
Hopefully better bcel-builder build system,
instigated by Andy actually trying to use
this module the way it is supposed to be used
Diffstat (limited to 'bcel-builder/build.xml')
-rw-r--r-- | bcel-builder/build.xml | 80 |
1 files changed, 45 insertions, 35 deletions
diff --git a/bcel-builder/build.xml b/bcel-builder/build.xml index 0310d4c3f..98aebeeb8 100644 --- a/bcel-builder/build.xml +++ b/bcel-builder/build.xml @@ -1,60 +1,70 @@ -<project default="unpackAndJar" basedir="."> +<project default="extractAndJar" basedir="."> - <target name="unpackAndJar" depends="unpack,jar" /> + <!-- top-level --> + <target name="extractAndJar" depends="extract,jar" /> - <target name="jar"> + <target name="extract" depends="unzipSource,createPatchedSource" /> + + <target name="jar" depends="pack"> <copy file="../lib/regexp/jakarta-regexp-1.2.jar" tofile="bcel/lib/Regex.jar" /> <ant dir="bcel" target="jar" /> <copy file="bcel/bin/bcel.jar" toDir="." /> </target> - - <target name="update"> + + <target name="push"> <copy file="bcel.jar" todir="../lib/bcel" /> </target> - - <target name="pack"> - <move toDir="bcel/src/java"> - <fileset dir="src" /> - </move> - </target> - - <target name="unpack" depends="extract,patch,srcclean"> - <move toDir="src"> - <fileset dir="bcel/src/java" /> - </move> - </target> - - <target name="extract"> - <unzip src="bcel-5.1-src.zip" dest="." /> + + <target name="diff" depends="pack"> + <exec dir="." executable="diff.exe" output="patch.txt"> + <arg line="-N"/> + <arg line="-a"/> + <arg line="-u"/> + <arg line="-r"/> + <arg line="-b"/> + <arg line="bcel-5.1" /> + <arg line="bcel" /> + </exec> </target> - - <target name="srcclean"> - <delete dir="src/org" /> + + <target name="clean"> + <delete dir="bcel-5.1" /> + <delete dir="bcel" /> + <delete file="bcel.jar" /> + <delete dir="src" /> + <mkdir dir="src" /> <!-- empty src dir --> </target> + + <!-- internals --> - <target name="clean" depends="srcclean"> + <target name="unzipSource"> <delete dir="bcel-5.1" /> - <delete dir="bcel" /> + <unzip src="bcel-5.1-src.zip" dest="." /> </target> + + <target name="createPatchedSource" depends="patch,unpack" /> <target name="patch"> + <delete dir="bcel" /> <copy todir="bcel"> <fileset dir="bcel-5.1" /> </copy> <patch patchfile="patch.txt" strip="1" dir="bcel" /> </target> - <target name="diff"> - <exec dir="." executable="diff.exe" output="patch.txt"> - <arg line="-N"/> - <arg line="-a"/> - <arg line="-u"/> - <arg line="-r"/> - <arg line="-b"/> - <arg line="bcel-5.1" /> - <arg line="bcel" /> - </exec> + <target name="pack"> + <delete dir="bcel/src/java" /> + <copy toDir="bcel/src/java"> + <fileset dir="src" /> + </copy> + </target> + + <target name="unpack"> + <delete dir="src" /> + <copy toDir="src"> + <fileset dir="bcel/src/java" /> + </copy> </target> </project> |