From: wisberg Date: Tue, 29 Apr 2003 00:25:34 +0000 (+0000) Subject: semantics-preserving - still only warn if aspectjrt.jar not found X-Git-Tag: V1_1_0_RC2~138 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=074b87b958d20b5704f53a6a618781e797f80eea;p=aspectj.git semantics-preserving - still only warn if aspectjrt.jar not found --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java index 4f2dbb6c5..d142242c9 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java @@ -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();