aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ltw/ant.xml
diff options
context:
space:
mode:
authormwebster <mwebster>2006-09-19 15:00:21 +0000
committermwebster <mwebster>2006-09-19 15:00:21 +0000
commita06896ea1981bb66838fbb352249eb614b2f2946 (patch)
tree0e9d4da17cc0b0e28791adc90fcf2335052e17a5 /tests/ltw/ant.xml
parenta40594edf71956e8e7b1d3229a335ce3892ba4a6 (diff)
downloadaspectj-a06896ea1981bb66838fbb352249eb614b2f2946.tar.gz
aspectj-a06896ea1981bb66838fbb352249eb614b2f2946.zip
Bug 157474 "Handle duplicate aop.xml definitions more gracefully" (tests for duplicate aop.xml and -Dorg.aspectj.weaver.loadtime.configuration)
Diffstat (limited to 'tests/ltw/ant.xml')
-rw-r--r--tests/ltw/ant.xml22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/ltw/ant.xml b/tests/ltw/ant.xml
index dfde53635..db38cb16a 100644
--- a/tests/ltw/ant.xml
+++ b/tests/ltw/ant.xml
@@ -45,4 +45,26 @@
</java>
</target>
+ <!-- We have three JARs files, two containing aspects (ExceptionHandler and Tracing)
+ for which aop-ajc.xml files have been generate. However we supply our own
+ aop.xml which declares only ExceptionHandler. We then override the
+ configuration search path -->
+ <target name="override default path using -Dorg.aspectj.weaver.loadtime.configuration">
+ <copy file="${aj.root}/tests/ltw/aop-orgaspectjweaverloadtimeconfiguration.xml"
+ tofile="${aj.sandbox}/META-INF/aop-random.xml"/>
+ <java fork="yes" classname="HelloWorld" failonerror="yes">
+ <classpath refid="aj.path"/>
+ <classpath>
+ <pathelement path="${aj.sandbox}/hello.jar:${aj.sandbox}/handler.jar:${aj.sandbox}/tracing.jar"/>
+ </classpath>
+ <jvmarg value="-Dorg.aspectj.weaver.loadtime.configuration=META-INF/aop-random.xml"/>
+ <jvmarg value="-Dorg.aspectj.tracing.enabled=true"/>
+ <jvmarg value="-Dorg.aspectj.tracing.factory=default"/>
+ <jvmarg value="-Dorg.aspectj.tracing.messages=true"/>
+ <!-- use META-INF/aop.xml style -->
+ <jvmarg value="-javaagent:${aj.root}/lib/test/loadtime5.jar"/>
+<!-- <jvmarg line="${jdwp}"/>-->
+ </java>
+ </target>
+
</project>