summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authoracolyer <acolyer>2004-10-21 12:38:55 +0000
committeracolyer <acolyer>2004-10-21 12:38:55 +0000
commitd3108e86e0eee2d180bcb5ec91e87f9559b88329 (patch)
tree387698b90b0cf9c672147516627eca3ce631f9a8 /build
parentf6f9f6518c99b66400b690e5d20f7f424eb6c934 (diff)
downloadaspectj-d3108e86e0eee2d180bcb5ec91e87f9559b88329.tar.gz
aspectj-d3108e86e0eee2d180bcb5ec91e87f9559b88329.zip
fix for Bugzilla Bug 73369
Create a jar file that can be used for load-time weaving...
Diffstat (limited to 'build')
-rw-r--r--build/build.xml30
1 files changed, 30 insertions, 0 deletions
diff --git a/build/build.xml b/build/build.xml
index 44cef9762..dc7c9c945 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -360,7 +360,37 @@ To use testing client jar in tests,
</antcall>
<!-- TODO : remove call -->
<antcall target="filter-tools-jar" />
+ <antcall target="aspectjweaver.jar" />
</target>
+
+ <target name="aspectjweaver.jar"
+ description="pull out the subset of aspecttools.jar needed for load-time weaving">
+ <!--
+ TODO : get rid of this!
+ Temp hack ahoy. Open up the aspectjtools.jar to a temp
+ location and then do a re-jar of it including only the
+ stuff we want to be in there.
+ -->
+ <mkdir dir="${aj.dist.dir}/tools_tmp"/>
+ <unjar dest="${aj.dist.dir}/tools_tmp"
+ src="${aj.dist.dir}/tools/lib/aspectjtools.jar"/>
+ <jar manifest="${aj.dist.dir}/tools_tmp/META-INF/MANIFEST.MF"
+ destfile="${aj.dist.dir}/tools/lib/aspectjweaver.jar">
+ <fileset dir="${aj.dist.dir}/tools_tmp">
+ <include name="org/aspectj/lang/**"/>
+ <include name="org/aspectj/runtime/**"/>
+ <include name="org/aspectj/asm/**"/>
+ <include name="org/aspectj/bridge/**"/>
+ <include name="org/aspectj/util/**"/>
+ <include name="org/aspectj/weaver/**"/>
+ <include name="org/aspectj/apache/bcel/**"/>
+ <include name="copyright.txt"/>
+ <include name="META-INF/**"/>
+ </fileset>
+ </jar>
+ <delete dir="${aj.dist.dir}/tools_tmp" />
+ </target>
+
<target name="filter-tools-jar">
<!--