diff options
-rw-r--r-- | build/build.xml | 30 | ||||
-rw-r--r-- | docs/dist/doc/examples/build.xml | 5 | ||||
-rw-r--r-- | docs/dist/doc/examples/ltw/README | 5 | ||||
-rw-r--r-- | lib/build/build.jar | bin | 134882 -> 147929 bytes |
4 files changed, 36 insertions, 4 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"> <!-- diff --git a/docs/dist/doc/examples/build.xml b/docs/dist/doc/examples/build.xml index 779bea195..5dbea8f19 100644 --- a/docs/dist/doc/examples/build.xml +++ b/docs/dist/doc/examples/build.xml @@ -73,6 +73,8 @@ location="${aspectj.lib.dir}/aspectjrt.jar"/> <property name="aspectjtools.jar" location="${aspectj.lib.dir}/aspectjtools.jar"/> + <property name="aspectjweaver.jar" + location="${aspectj.lib.dir}/aspectjweaver.jar"/> <!-- created directories --> <property name="classes.dir" @@ -440,8 +442,7 @@ <java classname="tracing.ExampleMain" fork="true"> <classpath> - <pathelement path="${aspectjrt.jar}"/> - <pathelement path="${aspectjtools.jar}"/> + <pathelement path="${aspectjweaver.jar}"/> </classpath> <jvmarg line="-showversion"/> <sysproperty key="java.system.class.loader" value="org.aspectj.weaver.WeavingURLClassLoader"/> diff --git a/docs/dist/doc/examples/ltw/README b/docs/dist/doc/examples/ltw/README index bbeb56290..92011019e 100644 --- a/docs/dist/doc/examples/ltw/README +++ b/docs/dist/doc/examples/ltw/README @@ -1,6 +1,7 @@ -This directory contains a script "aj" to demonstrate load-time weaving. Java
-classes on the CLASSPATH are loaded and woven with aspects on the ASPECTPATH.
+The bin directory of your AspectJ distribution contains a script "aj" to
+perform load-time weaving. Java classes on the CLASSPATH are loaded and
+woven with aspects on the ASPECTPATH.
This feature is only supported on JDK 1.4 and later.
--To compile the tracing example--
diff --git a/lib/build/build.jar b/lib/build/build.jar Binary files differindex 6cc8007b1..1b80b4b9d 100644 --- a/lib/build/build.jar +++ b/lib/build/build.jar |