]> source.dussan.org Git - aspectj.git/commitdiff
refix 112098 - check for correct aspectjrt.jar version re-enabled for Main (taskdef...
authorwisberg <wisberg>
Thu, 7 Sep 2006 07:29:32 +0000 (07:29 +0000)
committerwisberg <wisberg>
Thu, 7 Sep 2006 07:29:32 +0000 (07:29 +0000)
org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java

index a4eba9dcf9a50beb2ee761bcb356799c2ed7a926..9f0c8b9a01929ac3000c4974403a5018235999e2 100644 (file)
@@ -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);