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;
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;
/**
// 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
*/
* @param config
*/
private void configureCompilerOptions(AjBuildConfig config) {
- checkNotAskedForJava6Compliance();
String propcp = compiler.getCompilerConfiguration().getClasspath();
if (!LangUtil.isEmpty(propcp)) {
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);