aboutsummaryrefslogtreecommitdiffstats
path: root/tests/harness
diff options
context:
space:
mode:
authorwisberg <wisberg>2005-05-20 19:03:58 +0000
committerwisberg <wisberg>2005-05-20 19:03:58 +0000
commitce06e91f51bba7a9d92642d9ceb9f51d7a748015 (patch)
tree017d9128740eae07a6edddec838fb34d0bddf05f /tests/harness
parent4f46be7c62e76950028e5e8a7214f209d6343bda (diff)
downloadaspectj-ce06e91f51bba7a9d92642d9ceb9f51d7a748015.tar.gz
aspectj-ce06e91f51bba7a9d92642d9ceb9f51d7a748015.zip
pure binary weaving example
Diffstat (limited to 'tests/harness')
-rw-r--r--tests/harness/classpathTest/build.xml27
-rw-r--r--tests/harness/classpathTest/jars/AspectMain.jarbin0 -> 1295 bytes
-rw-r--r--tests/harness/classpathTest/readme.txt2
3 files changed, 28 insertions, 1 deletions
diff --git a/tests/harness/classpathTest/build.xml b/tests/harness/classpathTest/build.xml
new file mode 100644
index 000000000..04b73ba19
--- /dev/null
+++ b/tests/harness/classpathTest/build.xml
@@ -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
index 000000000..752be44dc
--- /dev/null
+++ b/tests/harness/classpathTest/jars/AspectMain.jar
Binary files differ
diff --git a/tests/harness/classpathTest/readme.txt b/tests/harness/classpathTest/readme.txt
index c5eb33819..776afbca8 100644
--- a/tests/harness/classpathTest/readme.txt
+++ b/tests/harness/classpathTest/readme.txt
@@ -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"