From: wisberg Date: Thu, 7 Sep 2006 07:29:32 +0000 (+0000) Subject: refix 112098 - check for correct aspectjrt.jar version re-enabled for Main (taskdef... X-Git-Tag: BEFORE_133532~64 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e5b2cd7148abec67d52132a9cddb9aea91acc9a1;p=aspectj.git refix 112098 - check for correct aspectjrt.jar version re-enabled for Main (taskdef, command-line) but still disabled otherwise (for AJDT) --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java b/org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java index a4eba9dcf..9f0c8b9a0 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java @@ -22,6 +22,7 @@ import java.util.Arrays; import java.util.List; import java.util.Date; +import org.aspectj.ajdt.internal.core.builder.AjBuildManager; import org.aspectj.bridge.AbortException; import org.aspectj.bridge.ICommand; import org.aspectj.bridge.IMessage; @@ -226,6 +227,8 @@ public class Main { * and signal result (0 no exceptions/error, <0 exceptions, >0 compiler errors). */ public void runMain(String[] args, boolean useSystemExit) { + // Urk - default no check for AJDT, enabled here for Ant, command-line + AjBuildManager.enableRuntimeVersionCheck(this); final boolean verbose = flagInArgs("-verbose", args); if (null == this.clientHolder) { this.clientHolder = checkForCustomMessageHolder(args);