diff options
Diffstat (limited to 'tests/tracing')
-rw-r--r-- | tests/tracing/ant.xml | 13 | ||||
-rw-r--r-- | tests/tracing/aop-tracemessages.xml | 13 |
2 files changed, 26 insertions, 0 deletions
diff --git a/tests/tracing/ant.xml b/tests/tracing/ant.xml index f7852949e..b0b7a9e17 100644 --- a/tests/tracing/ant.xml +++ b/tests/tracing/ant.xml @@ -24,4 +24,17 @@ </java> </target> + <target name="Trace messages"> + <copy file="${aj.root}/tests/tracing/aop-tracemessages.xml" + tofile="${aj.sandbox}/META-INF/aop.xml"/> + <java fork="yes" classname="HelloWorld" failonerror="yes"> + <classpath refid="aj.path"/> + <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> diff --git a/tests/tracing/aop-tracemessages.xml b/tests/tracing/aop-tracemessages.xml new file mode 100644 index 000000000..4f5e36a5a --- /dev/null +++ b/tests/tracing/aop-tracemessages.xml @@ -0,0 +1,13 @@ +<aspectj> + <aspects> + <aspect name="IncludedAspect"/> + <aspect name="ExcludedAspect"/> + + <concrete-aspect name="IncludedMissingAspect" extends="MissingAbstractAspect"> + <pointcut name="pointcut" expression="within(*)"/> + </concrete-aspect> + + <include within="Included*"/> + </aspects> + <weaver options="-Xlint:warning"/> +</aspectj>
\ No newline at end of file |