aboutsummaryrefslogtreecommitdiffstats
path: root/taskdefs/src
diff options
context:
space:
mode:
authorwisberg <wisberg>2006-02-16 22:57:18 +0000
committerwisberg <wisberg>2006-02-16 22:57:18 +0000
commitda562415d5349c7e1bb7e7d794cbc7c463e5a5ca (patch)
tree4213983607bd63d519d63384cf9d57119365b5b9 /taskdefs/src
parent9ee775954d74a5387b3fd89e0002e659647e99ac (diff)
downloadaspectj-da562415d5349c7e1bb7e7d794cbc7c463e5a5ca.tar.gz
aspectj-da562415d5349c7e1bb7e7d794cbc7c463e5a5ca.zip
fix for 128128 - suggestion correct
Diffstat (limited to 'taskdefs/src')
-rw-r--r--taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java b/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java
index 1498820eb..fd691104a 100644
--- a/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java
+++ b/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java
@@ -1230,7 +1230,7 @@ public class AjcTask extends MatchingTask {
if (null == holder) {
MessageHandler mhandler = new MessageHandler(true);
final IMessageHandler delegate;
- delegate = new AntMessageHandler(this.logger,this.verbose);
+ delegate = new AntMessageHandler(this.logger,this.verbose, false);
mhandler.setInterceptor(delegate);
holder = mhandler;
numPreviousErrors = 0;
@@ -2030,11 +2030,13 @@ public static class GuardedCommand {
private static class AntMessageHandler implements IMessageHandler {
private TaskLogger logger;
- private boolean taskLevelVerbose;
-
- public AntMessageHandler(TaskLogger logger, boolean taskVerbose) {
+ private final boolean taskLevelVerbose;
+ private final boolean handledMessage;
+
+ public AntMessageHandler(TaskLogger logger, boolean taskVerbose, boolean handledMessage) {
this.logger = logger;
this.taskLevelVerbose = taskVerbose;
+ this.handledMessage = handledMessage;
}
/* (non-Javadoc)
@@ -2067,7 +2069,7 @@ private static class AntMessageHandler implements IMessageHandler {
} else {
throw new BuildException("Unknown message kind from AspectJ compiler: " + messageKind.toString());
}
- return true;
+ return handledMessage;
}
/* (non-Javadoc)