Browse Source

pure binary weaving example

tags/PRE_ANDY
wisberg 19 years ago
parent
commit
ce06e91f51

+ 27
- 0
tests/harness/classpathTest/build.xml View File

@@ -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>

BIN
tests/harness/classpathTest/jars/AspectMain.jar View File


+ 1
- 1
tests/harness/classpathTest/readme.txt View 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"

Loading…
Cancel
Save