aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tracing
diff options
context:
space:
mode:
authormwebster <mwebster>2006-08-16 14:53:26 +0000
committermwebster <mwebster>2006-08-16 14:53:26 +0000
commitc1c9215efa1c1e332859dd50c103e2a0021e15fe (patch)
tree404f9239eaaddba5c4601624321c9ab7e4ac45aa /tests/tracing
parent4a53ac4202af0d7ee667474c7a1a4820e32a98cf (diff)
downloadaspectj-c1c9215efa1c1e332859dd50c103e2a0021e15fe.tar.gz
aspectj-c1c9215efa1c1e332859dd50c103e2a0021e15fe.zip
Bug 150487 "Tracing and Logging Framework" (trace everyting test)
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>