aboutsummaryrefslogtreecommitdiffstats
path: root/weaver
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 /weaver
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 'weaver')
-rw-r--r--weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java b/weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java
index 3d80b9901..b1adcfb8f 100644
--- a/weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java
+++ b/weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java
@@ -233,17 +233,17 @@ public class WeavingAdaptor implements IMessageContext {
// a valid aspectOf()/hasAspect() generated in them. However - if they are excluded
// (via include/exclude in aop.xml) they really should only get aspectOf()/hasAspect()
// and not be included in the full set of aspects being applied by 'this' weaver
- info("weaving '" + name + "'");
+ debug("weaving '" + name + "'");
bytes = getWovenBytes(name, bytes);
} else if (shouldWeaveAnnotationStyleAspect(name, bytes)) {
// an @AspectJ aspect needs to be at least munged by the aspectOf munger
- info("weaving '" + name + "'");
+ debug("weaving '" + name + "'");
bytes = getAtAspectJAspectBytes(name, bytes);
} else {
- info("not weaving '" + name + "'");
+ debug("not weaving '" + name + "'");
}
} else {
- info("cannot weave '" + name + "'");
+ debug("cannot weave '" + name + "'");
}
if (trace.isTraceEnabled()) trace.exit("weaveClass",bytes);
@@ -392,6 +392,10 @@ public class WeavingAdaptor implements IMessageContext {
return ret;
}
+ protected boolean debug (String message) {
+ return MessageUtil.debug(messageHandler,message);
+ }
+
protected boolean info (String message) {
return MessageUtil.info(messageHandler,message);
}
@@ -542,6 +546,7 @@ public class WeavingAdaptor implements IMessageContext {
super(writer,true);
ignore(IMessage.WEAVEINFO);
+ ignore(IMessage.DEBUG);
ignore(IMessage.INFO);
this.failKind = IMessage.ERROR;
}