aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tracing
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tracing')
-rw-r--r--tests/tracing/Aspect.aj5
-rw-r--r--tests/tracing/ant.xml13
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/tracing/Aspect.aj b/tests/tracing/Aspect.aj
new file mode 100644
index 000000000..3ecbe827e
--- /dev/null
+++ b/tests/tracing/Aspect.aj
@@ -0,0 +1,5 @@
+public aspect Aspect {
+ before () : within(HelloWorld) {
+ System.err.println(thisJoinPoint);
+ }
+} \ No newline at end of file
diff --git a/tests/tracing/ant.xml b/tests/tracing/ant.xml
index b0b7a9e17..064eecda0 100644
--- a/tests/tracing/ant.xml
+++ b/tests/tracing/ant.xml
@@ -37,4 +37,17 @@
</java>
</target>
+ <target name="Trace everything">
+ <java fork="yes" classname="HelloWorld" failonerror="yes">
+ <classpath refid="aj.path"/>
+ <jvmarg value="-Dorg.aspectj.tracing.enabled=true"/>
+ <jvmarg value="-Dorg.aspectj.tracing.factory=default"/>
+ <jvmarg value="-Dorg.aspectj.tracing.messages=true"/>
+<!-- <jvmarg value="-verbose:class"/>-->
+ <!-- use META-INF/aop.xml style -->
+ <jvmarg value="-javaagent:${aj.root}/lib/test/loadtime5.jar"/>
+<!-- <jvmarg line="${jdwp}"/>-->
+ </java>
+ </target>
+
</project>