aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ltw/ant.xml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ltw/ant.xml')
-rw-r--r--tests/ltw/ant.xml24
1 files changed, 19 insertions, 5 deletions
diff --git a/tests/ltw/ant.xml b/tests/ltw/ant.xml
index e1cb0a6bd..dff2071e7 100644
--- a/tests/ltw/ant.xml
+++ b/tests/ltw/ant.xml
@@ -8,7 +8,7 @@
<property name="aj.bootpath" refid="aj.path"/>
<target name="JDK14 LTW with XML">
- <java fork="yes" classname="HelloWorld" failonerror="yes">
+ <java fork="yes" classname="HelloWorldWithException" failonerror="yes">
<classpath refid="aj.path"/>
<jvmarg value="-Djava.system.class.loader=org.aspectj.weaver.loadtime.WeavingURLClassLoader"/>
<sysproperty key="aj.class.path" path="${aj.sandbox}/hello.jar:${aj.sandbox}/handler.jar"/>
@@ -24,7 +24,7 @@
</target>
<target name="JDK14 LTW with ASPECTPATH">
- <java fork="yes" classname="HelloWorld" failonerror="yes">
+ <java fork="yes" classname="HelloWorldWithException" failonerror="yes">
<classpath refid="aj.path"/>
<jvmarg value="-Djava.system.class.loader=org.aspectj.weaver.loadtime.WeavingURLClassLoader"/>
<sysproperty key="aj.class.path" path="${aj.sandbox}/hello.jar:${aj.sandbox}/handler.jar"/>
@@ -47,7 +47,7 @@
<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">
+ <java fork="yes" classname="HelloWorldWithException" failonerror="yes">
<classpath refid="aj.path"/>
<classpath>
<pathelement path="${aj.sandbox}/hello.jar:${aj.sandbox}/handler.jar:${aj.sandbox}/tracing.jar"/>
@@ -68,7 +68,7 @@
SecurityManager that will be loaded _before_ the class loader
hierarch is fully initialized. -->
<target name="NPE with custom agent">
- <java fork="yes" classname="HelloWorld" failonerror="yes">
+ <java fork="yes" classname="HelloWorldWithException" failonerror="yes">
<!-- Prepend custom URLClassLoader and append AspectJ
to bootclasspath -->
@@ -97,7 +97,7 @@
<target name="simple LTW">
<copy file="${aj.root}/tests/ltw/aop-simple.xml"
tofile="${aj.sandbox}/META-INF/aop.xml"/>
- <java fork="yes" classname="HelloWorld" failonerror="yes">
+ <java fork="yes" classname="HelloWorldWithException" failonerror="yes">
<classpath refid="aj.path"/>
<!-- use META-INF/aop.xml style -->
<jvmarg value="-javaagent:${aj.root}/lib/test/loadtime5.jar"/>
@@ -105,4 +105,18 @@
</java>
</target>
+ <target name="dump on error">
+ <copy file="${aj.root}/tests/ltw/aop-dumponerror.xml"
+ tofile="${aj.sandbox}/META-INF/aop.xml"/>
+ <java fork="yes" classname="HelloWorldWithException" failonerror="no">
+ <classpath refid="aj.path"/>
+ <jvmarg value="-Dorg.aspectj.weaver.Dump.condition=error"/>
+ <sysproperty key="org.aspectj.dump.directory" path="${aj.sandbox}"/>
+ <!-- use META-INF/aop.xml style -->
+ <jvmarg value="-javaagent:${aj.root}/lib/test/loadtime5.jar"/>
+<!-- <jvmarg line="${jdwp}"/>-->
+ <jvmarg value="-Dorg.aspectj.tracing.factory=default"/>
+ </java>
+ </target>
+
</project>