]> source.dussan.org Git - aspectj.git/commitdiff
propoogating Erik's changes to AbortException
authorjhugunin <jhugunin>
Tue, 17 Dec 2002 00:32:49 +0000 (00:32 +0000)
committerjhugunin <jhugunin>
Tue, 17 Dec 2002 00:32:49 +0000 (00:32 +0000)
taskdefs/src/org/aspectj/tools/ant/taskdefs/Ajc10.java
taskdefs/src/org/aspectj/tools/ant/taskdefs/Ajc11CompilerAdapter.java

index 7c79d028486690c96f21c4c89b281fccf57bd052..cacf88627ff50a14aa92403a92041bad1dbe32fe 100644 (file)
@@ -592,7 +592,7 @@ public class Ajc10 extends MatchingTask {
         } catch (Throwable t) {
             while (t instanceof AbortException) {
                 // check for "just quit -- message printed already"
-                if (AbortException.ABORT.equals(t)) { 
+                if (((AbortException)t).isSilent()) { 
                     t = null;
                     break;
                 }
index c4e87f3de1238fe04519209b90049e235b3a0581..64b7d04db52f9548e113b65522946f0be64b8484 100644 (file)
@@ -88,7 +88,7 @@ public class Ajc11CompilerAdapter extends DefaultCompilerAdapter {
         } catch (BuildException e) {
             throw e;
         } catch (AbortException x) {
-            if (AbortException.ABORT.equals(x)) { // no message, just return
+            if (x.isSilent()) { // no message, just return
                 return false;
             } else {
                 Throwable t = x.getThrown();