]> source.dussan.org Git - aspectj.git/commitdiff
semantics-preserving - still only warn if aspectjrt.jar not found
authorwisberg <wisberg>
Tue, 29 Apr 2003 00:25:34 +0000 (00:25 +0000)
committerwisberg <wisberg>
Tue, 29 Apr 2003 00:25:34 +0000 (00:25 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java

index 4f2dbb6c51473f0f6103a7eab763cc235ea4b401..d142242c91d996ce86d5ff070ce2a045dffa9ce5 100644 (file)
@@ -66,6 +66,7 @@ import org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory;
 import org.eclipse.jdt.internal.compiler.util.HashtableOfObject;
 
 public class AjBuildManager {
+    static final boolean FAIL_IF_RUNTIME_NOT_FOUND = false;
        private IProgressListener progressListener = null;
        
        private int compiledCount;
@@ -103,9 +104,12 @@ public class AjBuildManager {
                        
                        String check = checkRtJar(buildConfig);
                        if (check != null) {
-                IMessage message = new Message(check, Message.WARNING, null, null);
-                // give delegate a chance to implement different message (abort)?
-                handler.handleMessage(message); 
+                if (FAIL_IF_RUNTIME_NOT_FOUND) {
+                    MessageUtil.error(check);
+                    return false;
+                } else {
+                    MessageUtil.warn(check);
+                }
             }
 
                        setupModel();