summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authormwebster <mwebster>2006-08-23 11:52:22 +0000
committermwebster <mwebster>2006-08-23 11:52:22 +0000
commit8549d861b124c20eba114b658e886bfbaf5d231c (patch)
tree23e297d985530526f65041b21bf113171665139a /tests
parent30c0ada8a7430c4cfeab89f94291f328099e9da4 (diff)
downloadaspectj-8549d861b124c20eba114b658e886bfbaf5d231c.tar.gz
aspectj-8549d861b124c20eba114b658e886bfbaf5d231c.zip
Bug 150271 "Allow multiple levels of LTW information" (make weaving/not weaving messages debug and add -debug to options for aop.xml)
Diffstat (limited to 'tests')
-rw-r--r--tests/java5/ataspectj/ajc-ant.xml8
-rw-r--r--tests/java5/ataspectj/ataspectj/TestHelper.java6
-rw-r--r--tests/java5/ataspectj/ataspectj/aop-dumpbeforeandafter.xml2
-rw-r--r--tests/java5/ataspectj/ataspectj/ltwlog/aop-verbose.xml2
-rw-r--r--tests/java5/ataspectj/ataspectj/ltwlog/aop-verboseandshow.xml2
-rw-r--r--tests/ltw/aop-defineaspect.xml2
-rw-r--r--tests/ltw/aop-emptytests.xml2
-rw-r--r--tests/ltw/aop-nomatch.xml2
-rw-r--r--tests/ltw/aop-nomatchxlint.xml2
-rw-r--r--tests/ltw/aop-nomatchxlintfile.xml2
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/ataspectj/ltw.xml16
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/ltw/ltw-tests.xml16
-rw-r--r--tests/src/org/aspectj/systemtest/ajc152/ajc152.xml4
13 files changed, 33 insertions, 33 deletions
diff --git a/tests/java5/ataspectj/ajc-ant.xml b/tests/java5/ataspectj/ajc-ant.xml
index 8dccebac7..12df7d64c 100644
--- a/tests/java5/ataspectj/ajc-ant.xml
+++ b/tests/java5/ataspectj/ajc-ant.xml
@@ -1,11 +1,13 @@
<!-- ajc-ant script, not to be used from Ant commant line - see AntSpec -->
-<project name="ltw" default="javac.ltw">
+<project name="ltw" default="RunThemAllWithJavacCompiledAndLTW">
<!-- using this we can debug the forked VM -->
<property
name="jdwp"
value="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"/>
+ <target name="RunThemAllWithJavacCompiledAndLTW" depends="compile:javac, ltw"/>
+
<target name="compile:javac">
<!-- compile only javac compilable stuff, exclude the one that needs other dependencies -->
<javac destdir="${aj.sandbox}" classpathref="aj.path"
@@ -68,8 +70,6 @@
</java>
</target>
- <target name="javac.ltw" depends="compile:javac, ltw"/>
-
<target name="ltw.Aspect2MainTest">
<!-- javac Aspect2 -->
<javac destdir="${aj.sandbox}" classpathref="aj.path"
@@ -168,7 +168,7 @@
</java>
</target>
- <target name="ltw.oldAspectsDeclared">
+ <target name="Compile time aspects declared to ltw weaver">
<!--Aspects woven at compile time must be declared in an aop.xml file.
If they are not declared, then they will be lost during reweaving-->
diff --git a/tests/java5/ataspectj/ataspectj/TestHelper.java b/tests/java5/ataspectj/ataspectj/TestHelper.java
index 378f5936d..f53956193 100644
--- a/tests/java5/ataspectj/ataspectj/TestHelper.java
+++ b/tests/java5/ataspectj/ataspectj/TestHelper.java
@@ -57,9 +57,9 @@ public class TestHelper extends DefaultMessageHandler {
public boolean handleMessage(IMessage message) throws AbortException {
boolean ret = super.handleMessage(message);
- if (message.getKind().isSameOrLessThan(IMessage.INFO)) {
- ;
- } else {
+ if (message.getKind().isSameOrLessThan(IMessage.INFO));
+ if (message.getKind().isSameOrLessThan(IMessage.DEBUG));
+ else {
// we do exit here since Assert.fail will only trigger a runtime exception that might
// be catched by the weaver anyway
System.err.println("*** Exiting - got a warning/fail/error/abort IMessage");
diff --git a/tests/java5/ataspectj/ataspectj/aop-dumpbeforeandafter.xml b/tests/java5/ataspectj/ataspectj/aop-dumpbeforeandafter.xml
index 8f0ef772d..cf94484e7 100644
--- a/tests/java5/ataspectj/ataspectj/aop-dumpbeforeandafter.xml
+++ b/tests/java5/ataspectj/ataspectj/aop-dumpbeforeandafter.xml
@@ -3,7 +3,7 @@
<aspects>
<aspect name="ataspectj.EmptyAspect"/>
</aspects>
- <weaver options="-XlazyTjp -verbose">
+ <weaver options="-XlazyTjp -verbose -debug">
<dump within="com.foo.bar..*" beforeandafter="true"/>
<include within="com.foo..*"/>
<exclude within="com.foo.bar..*CGLIB*"/>
diff --git a/tests/java5/ataspectj/ataspectj/ltwlog/aop-verbose.xml b/tests/java5/ataspectj/ataspectj/ltwlog/aop-verbose.xml
index 7cd1b4629..edaa71777 100644
--- a/tests/java5/ataspectj/ataspectj/ltwlog/aop-verbose.xml
+++ b/tests/java5/ataspectj/ataspectj/ltwlog/aop-verbose.xml
@@ -1,5 +1,5 @@
<aspectj>
- <weaver options="-verbose"/>
+ <weaver options="-verbose -debug"/>
<aspects>
<aspect name="ataspectj.ltwlog.Aspect1"/>
</aspects>
diff --git a/tests/java5/ataspectj/ataspectj/ltwlog/aop-verboseandshow.xml b/tests/java5/ataspectj/ataspectj/ltwlog/aop-verboseandshow.xml
index 557ad27a5..8f1d70406 100644
--- a/tests/java5/ataspectj/ataspectj/ltwlog/aop-verboseandshow.xml
+++ b/tests/java5/ataspectj/ataspectj/ltwlog/aop-verboseandshow.xml
@@ -1,5 +1,5 @@
<aspectj>
- <weaver options="-showWeaveInfo -verbose"/>
+ <weaver options="-showWeaveInfo -verbose -debug"/>
<aspects>
<aspect name="ataspectj.ltwlog.Aspect1"/>
</aspects>
diff --git a/tests/ltw/aop-defineaspect.xml b/tests/ltw/aop-defineaspect.xml
index f40bff2c4..2fe76caa5 100644
--- a/tests/ltw/aop-defineaspect.xml
+++ b/tests/ltw/aop-defineaspect.xml
@@ -4,6 +4,6 @@
<pointcut name="scope" expression="within(Main)"/>
</concrete-aspect>
</aspects>
- <weaver options="-verbose"/>
+ <weaver options="-verbose -debug"/>
</aspectj>
diff --git a/tests/ltw/aop-emptytests.xml b/tests/ltw/aop-emptytests.xml
index da7bd5e2a..f686bb484 100644
--- a/tests/ltw/aop-emptytests.xml
+++ b/tests/ltw/aop-emptytests.xml
@@ -2,7 +2,7 @@
<aspects>
<aspect name="EmptyAspect"/>
</aspects>
- <weaver options="-verbose">
+ <weaver options="-verbose -debug">
<include within="*1"/>
</weaver>
</aspectj> \ No newline at end of file
diff --git a/tests/ltw/aop-nomatch.xml b/tests/ltw/aop-nomatch.xml
index 620a4c77e..ac82b6014 100644
--- a/tests/ltw/aop-nomatch.xml
+++ b/tests/ltw/aop-nomatch.xml
@@ -3,5 +3,5 @@
<aspect name="Aspect3"/>
</aspects>
- <weaver options="-verbose -showWeaveInfo"/>
+ <weaver options="-verbose -debug -showWeaveInfo"/>
</aspectj>
diff --git a/tests/ltw/aop-nomatchxlint.xml b/tests/ltw/aop-nomatchxlint.xml
index 4271e394d..46c38ca75 100644
--- a/tests/ltw/aop-nomatchxlint.xml
+++ b/tests/ltw/aop-nomatchxlint.xml
@@ -3,5 +3,5 @@
<aspect name="Aspect3"/>
</aspects>
- <weaver options="-verbose -showWeaveInfo -Xlint:warning"/>
+ <weaver options="-verbose -debug -showWeaveInfo -Xlint:warning"/>
</aspectj>
diff --git a/tests/ltw/aop-nomatchxlintfile.xml b/tests/ltw/aop-nomatchxlintfile.xml
index 35ce126e3..1bfabf169 100644
--- a/tests/ltw/aop-nomatchxlintfile.xml
+++ b/tests/ltw/aop-nomatchxlintfile.xml
@@ -3,5 +3,5 @@
<aspect name="Aspect3"/>
</aspects>
- <weaver options="-verbose -showWeaveInfo -Xlintfile:Xlint-nomatch.properties"/>
+ <weaver options="-verbose -debug -showWeaveInfo -Xlintfile:Xlint-nomatch.properties"/>
</aspectj>
diff --git a/tests/src/org/aspectj/systemtest/ajc150/ataspectj/ltw.xml b/tests/src/org/aspectj/systemtest/ajc150/ataspectj/ltw.xml
index a74d17ede..a27ecd482 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/ataspectj/ltw.xml
+++ b/tests/src/org/aspectj/systemtest/ajc150/ataspectj/ltw.xml
@@ -2,7 +2,7 @@
<suite>
<ajc-test dir="java5/ataspectj" title="RunThemAllWithJavacCompiledAndLTW">
- <ant file="ajc-ant.xml" target="javac.ltw" verbose="true"/>
+ <ant file="ajc-ant.xml" target="RunThemAllWithJavacCompiledAndLTW" verbose="true"/>
</ajc-test>
<ajc-test dir="java5/ataspectj" title="AjcLTW PerClauseTest -XterminateAfterCompilation">
@@ -113,8 +113,8 @@
<line text="info register classloader"/>
<line text="info using"/>
<line text="info register aspect ataspectj.EmptyAspect"/>
- <line text="info not weaving 'com.foo.bar.Test$$EnhancerByCGLIB$$12345'"/>
- <line text="info weaving 'com.foo.bar.Test'"/>
+ <line text="debug not weaving 'com.foo.bar.Test$$EnhancerByCGLIB$$12345'"/>
+ <line text="debug weaving 'com.foo.bar.Test'"/>
</stderr>
</run>
</ajc-test>
@@ -182,8 +182,8 @@
<line text="info register classloader"/>
<line text="info using"/>
<line text="info register aspect ataspectj.ltwlog.Aspect1"/>
- <line text="info weaving 'ataspectj.ltwlog.Main'"/>
- <line text="info weaving 'ataspectj.ltwlog.Aspect1'"/>
+ <line text="debug weaving 'ataspectj.ltwlog.Main'"/>
+ <line text="debug weaving 'ataspectj.ltwlog.Aspect1'"/>
</stderr>
</run>
</ajc-test>
@@ -207,9 +207,9 @@
<line text="info register classloader"/>
<line text="info using"/>
<line text="info register aspect ataspectj.ltwlog.Aspect1"/>
- <line text="info weaving 'ataspectj.ltwlog.Main'"/>
+ <line text="debug weaving 'ataspectj.ltwlog.Main'"/>
<line text="weaveinfo Join point 'method-execution(void ataspectj.ltwlog.Main.target())' in Type 'ataspectj.ltwlog.Main' (Main.java:22) advised by before advice from 'ataspectj.ltwlog.Aspect1' (Aspect1.java)"/>
- <line text="info weaving 'ataspectj.ltwlog.Aspect1'"/>
+ <line text="debug weaving 'ataspectj.ltwlog.Aspect1'"/>
</stderr>
</run>
</ajc-test>
@@ -264,7 +264,7 @@
files="ataspectj/ltwlog/MessageHolder.java,ataspectj/ltwreweavable/MainReweavableLogging.java,ataspectj/ltwreweavable/AspectReweavableLogging.java,ataspectj/ltwreweavable/Advisable.java,ataspectj/ltwreweavable/EmptyAtAspect.java"
options="-1.5"
outjar="main1.jar"/>
- <ant file="ajc-ant.xml" target="ltw.oldAspectsDeclared" verbose="true"/>
+ <ant file="ajc-ant.xml" target="Compile time aspects declared to ltw weaver" verbose="true"/>
</ajc-test>
<ajc-test dir="java5/ataspectj" title="Concrete@Aspect">
diff --git a/tests/src/org/aspectj/systemtest/ajc150/ltw/ltw-tests.xml b/tests/src/org/aspectj/systemtest/ajc150/ltw/ltw-tests.xml
index 14bf511c5..816ff27b2 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/ltw/ltw-tests.xml
+++ b/tests/src/org/aspectj/systemtest/ajc150/ltw/ltw-tests.xml
@@ -6,7 +6,7 @@
<compile
files="Main.java, Aspect1.aj"
outjar="main1.jar"
- options="-showWeaveInfo"
+ options="-showWeaveInfo -verbose"
>
<message kind="weave" text="method-execution(void Main.test1())' in Type 'Main' (Main.java:17) advised by before advice from 'Aspect1' (Aspect1.aj:16)"/>
</compile>
@@ -14,7 +14,7 @@
classpath="main1.jar"
files="Aspect2.aj"
outjar="aspect2.jar"
- options="-showWeaveInfo"
+ options="-showWeaveInfo -verbose"
>
</compile>
<run class="Main" ltw="aop-ltwreweavable.xml">
@@ -227,8 +227,8 @@
<line text="info AspectJ Weaver Version"/>
<line text="info register classloader"/>
<line text="info using"/>
- <line text="info generating class 'ConcreteAspect'"/>
- <line text="info weaving 'Main'"/>
+ <line text="debug generating class 'ConcreteAspect'"/>
+ <line text="debug weaving 'Main'"/>
<line text="AbstractSuperAspect.before_test1"/>
</stderr>
</run>
@@ -396,7 +396,7 @@
<line text="info register classloader"/>
<line text="info using"/>
<line text="info register aspect Aspect3"/>
- <line text="info weaving 'Main'"/>
+ <line text="debug weaving 'Main'"/>
</stderr>
</run>
</ajc-test>
@@ -419,7 +419,7 @@
<line text="info using"/>
<line text="info register aspect Aspect3"/>
<line text="can not build thisJoinPoint lazily for this advice"/>
- <line text="info weaving 'Main'"/>
+ <line text="debug weaving 'Main'"/>
</stderr>
</run>
</ajc-test>
@@ -442,7 +442,7 @@
<line text="info using"/>
<line text="info register aspect Aspect3"/>
<line text="can not build thisJoinPoint lazily for this advice"/>
- <line text="info weaving 'Main'"/>
+ <line text="debug weaving 'Main'"/>
</stderr>
</run>
</ajc-test>
@@ -465,7 +465,7 @@
<line text="info using"/>
<line text="info register aspect Aspect3"/>
<line text="can not build thisJoinPoint lazily for this advice"/>
- <line text="info weaving 'Main'"/>
+ <line text="debug weaving 'Main'"/>
</stderr>
</run>
</ajc-test>
diff --git a/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml b/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml
index 39bb0146a..812d15830 100644
--- a/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml
+++ b/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml
@@ -703,8 +703,8 @@
<line text="info register classloader org.aspectj.weaver.loadtime.WeavingURLClassLoader"/>
<line text="info using configuration"/>
<line text="info register aspect EmptyAspect"/>
- <line text="info weaving"/>
- <line text="info not weaving"/>
+ <line text="debug weaving"/>
+ <line text="debug not weaving"/>
</stderr>
</run>
</ajc-test>