diff options
author | wisberg <wisberg> | 2002-12-23 20:45:48 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2002-12-23 20:45:48 +0000 |
commit | 7c43b113149667d26dab2ab2fe71ffc8f916cc5a (patch) | |
tree | d4eff2546ade9255bb50c4e2ffc6326522b4dc2a /build | |
parent | 9ca3c5431f71b1cd08d94edb38a5a5a1b617ab9b (diff) | |
download | aspectj-7c43b113149667d26dab2ab2fe71ffc8f916cc5a.tar.gz aspectj-7c43b113149667d26dab2ab2fe71ffc8f916cc5a.zip |
- added aspectjrt target (alias to runtime)
- implemented target to fail if bootstrap libraries are out of date
- moved update-tree under setup comment
Diffstat (limited to 'build')
-rw-r--r-- | build/build.xml | 66 |
1 files changed, 50 insertions, 16 deletions
diff --git a/build/build.xml b/build/build.xml index 015493d91..5c1cecd7a 100644 --- a/build/build.xml +++ b/build/build.xml @@ -46,11 +46,11 @@ <available property="testing.drivers.all.available" file="${aj.jar.dir}/testing-drivers-all.jar" value="${aj.jar.dir}/testing-drivers-all.jar"/> - </target> <target name="version-uptodate" depends="init,init-taskdefs" unless="version-uptodate.done"> + <!-- XXX change task to pre-check & avoid scan if dates uptodate --> <versionuptodate version="${build.version}" versionSourceFile="${aspectj.modules.dir}/bridge/src/org/aspectj/bridge/Version.java" @@ -83,6 +83,38 @@ <echo message="----- WARNING: ${ant.lib.aspectjtools}" /> </target> + <target name="fail-unless-boot-libraries-uptodate" depends="init" + description="fail unless all boot libraries are up-to-date"> + + <antcall target="verify-boot-lib"> + <param name="boot.lib" value="test/aspectjrt.jar"/> + <param name="vbl.module.name" value="runtime"/> + </antcall> + + <antcall target="verify-boot-lib"> + <param name="boot.lib" value="build/build.jar"/> + <param name="vbl.module.name" value="build"/> + </antcall> + + <antcall target="verify-boot-lib"> + <param name="boot.lib" value="test/testing-client.jar"/> + <param name="vbl.module.name" value="testing-client"/> + </antcall> + + <echo message="all boot libraries verified"/> + </target> + + <target name="update-tree" depends="init" + description="update tree"> + <fail unless="CVSROOT" + message="required: {ant} -DCVSROOT=... ..."/> + <cvs cvsRoot="${CVSROOT}" + dest="${aspectj.modules.dir}" + quiet="on" + failonerror="on" + command="update -dP" /> + </target> + <!-- ===================================================================== --> <!-- test targets --> <!-- ===================================================================== --> @@ -97,20 +129,6 @@ </target> <!-- ===================================================================== --> - <!-- tree targets --> - <!-- ===================================================================== --> - <target name="update.tree" depends="init" - description="update tree"> - <fail unless="CVSROOT" - message="required: {ant} -DCVSROOT=... ..."/> - <cvs cvsRoot="${CVSROOT}" - dest="${aspectj.modules.dir}" - quiet="on" - failonerror="on" - command="update -dP" /> - </target> - - <!-- ===================================================================== --> <!-- antcall targets --> <!-- ===================================================================== --> @@ -167,6 +185,19 @@ resourcesSrc="${aspectj.modules.build.dir}/installer-resources"/> </target> + <target name="verify-boot-lib" depends="init" + description="fail if ${boot.lib} is out of date wrt ${vbl.module.name}"> + <uptodate property="lib-warning-${vbl.module.name}" + targetfile="${aspectj.modules.dir}/lib/${boot.lib}"> + <srcfiles dir="${aspectj.modules.dir}/${vbl.module.name}/src" + includes="**/*.java"/> + </uptodate> + + <fail unless="lib-warning-${vbl.module.name}" + message="${boot.lib} out of date wrt module ${vbl.module.name}"/> + + </target> + <!-- ===================================================================== --> <!-- custom targets --> <!-- ===================================================================== --> @@ -228,10 +259,13 @@ inheritAll="false"/> <!-- true? --> </target> - <target name="runtime" depends="init"> + <target name="aspectjrt" depends="init" + description="build aspectjrt.jar (differently than release)"> <antcall target="build-module-all"> <param name="module.name" value="runtime"/> </antcall> + <copy file="${aj.jar.dir}/runtime.jar" + tofile="${aj.jar.dir}/aspectjrt.jar"/> </target> <!-- ===================================================================== --> |