]> source.dussan.org Git - aspectj.git/commitdiff
pure binary weaving example
authorwisberg <wisberg>
Fri, 20 May 2005 19:03:58 +0000 (19:03 +0000)
committerwisberg <wisberg>
Fri, 20 May 2005 19:03:58 +0000 (19:03 +0000)
tests/harness/classpathTest/build.xml [new file with mode: 0644]
tests/harness/classpathTest/jars/AspectMain.jar [new file with mode: 0644]
tests/harness/classpathTest/readme.txt

diff --git a/tests/harness/classpathTest/build.xml b/tests/harness/classpathTest/build.xml
new file mode 100644 (file)
index 0000000..04b73ba
--- /dev/null
@@ -0,0 +1,27 @@
+<project name="classpathTest" default="aspect">
+       <target name="aspect"
+               description="produce AspectMain.jar">
+               <property name="lib.dir"
+               location="../../../lib"/>
+               <property name="aspectj.lib.dir"
+               location="${lib.dir}/aspectj/lib"/>
+           <taskdef resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties">
+               <classpath> 
+                       <pathelement path="${aspectj.lib.dir}/aspectjtools.jar"/> 
+                       </classpath>
+               </taskdef>
+               <iajc
+                       outjar="jars/AspectMain.jar"
+                   fork="true"
+                   forkclasspath="${aspectj.lib.dir}/aspectjtools.jar"
+               srcdir="." includes="AspectMain.java">           
+                       <classpath>
+                   <pathelement path="${aspectj.lib.dir}/aspectjrt.jar"/> 
+                   <pathelement path="${lib.dir}/test/testing-client.jar"/> 
+                       <pathelement path="jars/required.jar"/> 
+                       <pathelement path="classesDir"/> 
+                       <pathelement path="jars/requiredAspects.jar"/> 
+                       </classpath>
+               </iajc>
+       </target>       
+</project>
diff --git a/tests/harness/classpathTest/jars/AspectMain.jar b/tests/harness/classpathTest/jars/AspectMain.jar
new file mode 100644 (file)
index 0000000..752be44
Binary files /dev/null and b/tests/harness/classpathTest/jars/AspectMain.jar differ
index c5eb338198ef7efdc9a7e569b0cfc6f3e9430dbb..776afbca816f28dab1cda60b8f4f06c7f66676a1 100644 (file)
@@ -6,7 +6,7 @@ for classpath (jar and dir) and aspectpath.
 Binaries are in jars/*, and classesDir/*, and 
 binary sources and a build script are in classpath-src.
   
-Two test specifications are in tests/ajcHarnessTests.xml:
+See specifications are in tests/ajcHarnessTests.xml, e.g.,
 
     <ajc-test dir="harness/classpathTest"
       title="specify jars and directories on classpath"