From 074b87b958d20b5704f53a6a618781e797f80eea Mon Sep 17 00:00:00 2001 From: wisberg Date: Tue, 29 Apr 2003 00:25:34 +0000 Subject: [PATCH] semantics-preserving - still only warn if aspectjrt.jar not found --- .../ajdt/internal/core/builder/AjBuildManager.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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(); -- 2.39.5