]> source.dussan.org Git - aspectj.git/commitdiff
big refactoring
authoraclement <aclement>
Thu, 8 May 2008 19:53:25 +0000 (19:53 +0000)
committeraclement <aclement>
Thu, 8 May 2008 19:53:25 +0000 (19:53 +0000)
ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java

index 46db93884b341c5447d693d364d9652cf4dcf84a..5b7751cd65aad8bd56db48bf309111c53d0770e2 100644 (file)
@@ -24,6 +24,7 @@ import org.aspectj.ajde.core.IOutputLocationManager;
 import org.aspectj.ajde.core.JavaOptions;
 import org.aspectj.ajdt.ajc.AjdtCommand;
 import org.aspectj.ajdt.ajc.BuildArgParser;
+import org.aspectj.ajdt.ajc.ConfigParser;
 import org.aspectj.ajdt.internal.core.builder.AjBuildConfig;
 import org.aspectj.ajdt.internal.core.builder.AjBuildManager;
 import org.aspectj.ajdt.internal.core.builder.AjState;
@@ -38,7 +39,6 @@ import org.aspectj.bridge.Message;
 import org.aspectj.bridge.SourceLocation;
 import org.aspectj.bridge.context.CompilationAndWeavingContext;
 import org.aspectj.org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
-import org.aspectj.util.ConfigParser;
 import org.aspectj.util.LangUtil;
 
 /**
@@ -61,10 +61,19 @@ public class AjdeCoreBuildManager {
                // this static information needs to be set to ensure 
                // incremental compilation works correctly
                IncrementalStateManager.recordIncrementalStates=true;
-               IncrementalStateManager.debugIncrementalStates=true;
+               IncrementalStateManager.debugIncrementalStates=false;
                AsmManager.attemptIncrementalModelRepairs = true;
        }
        
+       // XXX hideous, should not be Object
+       public void setCustomMungerFactory(Object o) {
+               ajBuildManager.setCustomMungerFactory(o);
+       }
+       
+       public Object getCustomMungerFactory() {
+               return ajBuildManager.getCustomMungerFactory();
+       }
+       
        /**
         * @param buildFresh - true if want to force a full build, false otherwise
         */
@@ -264,7 +273,6 @@ public class AjdeCoreBuildManager {
         * @param config
         */
        private void configureCompilerOptions(AjBuildConfig config) {
-               checkNotAskedForJava6Compliance();
                
         String propcp = compiler.getCompilerConfiguration().getClasspath();
         if (!LangUtil.isEmpty(propcp)) {
@@ -309,7 +317,7 @@ public class AjdeCoreBuildManager {
                Map jom = compiler.getCompilerConfiguration().getJavaOptionsMap();
                if (jom!=null) {
                        String version = (String)jom.get(CompilerOptions.OPTION_Compliance);
-                       if (version!=null && version.equals(CompilerOptions.VERSION_1_5)) {
+                       if (version!=null && ( version.equals(CompilerOptions.VERSION_1_5) || version.equals(CompilerOptions.VERSION_1_6))) {
                                config.setBehaveInJava5Way(true);
                        }
                        config.getOptions().set(jom);