summaryrefslogtreecommitdiffstats
path: root/ajde.core
diff options
context:
space:
mode:
Diffstat (limited to 'ajde.core')
-rw-r--r--ajde.core/src/org/aspectj/ajde/core/AjCompiler.java9
-rw-r--r--ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java9
2 files changed, 18 insertions, 0 deletions
diff --git a/ajde.core/src/org/aspectj/ajde/core/AjCompiler.java b/ajde.core/src/org/aspectj/ajde/core/AjCompiler.java
index 9f2672414..13df1ccc7 100644
--- a/ajde.core/src/org/aspectj/ajde/core/AjCompiler.java
+++ b/ajde.core/src/org/aspectj/ajde/core/AjCompiler.java
@@ -15,6 +15,7 @@ import org.aspectj.ajdt.internal.core.builder.IncrementalStateManager;
import org.aspectj.bridge.IMessage;
import org.aspectj.bridge.Message;
import org.aspectj.org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
+import org.aspectj.weaver.CustomMungerFactory;
/**
* The class to be used by tools to drive a build. An AjCompiler is created
@@ -59,6 +60,14 @@ public class AjCompiler {
buildManager = new AjdeCoreBuildManager(this);
}
+ public void setCustomMungerFactory(CustomMungerFactory factory) {
+ buildManager.setCustomMungerFactory(factory);
+ }
+
+ public CustomMungerFactory getCustomMungerFactory() {
+ return buildManager.getCustomMungerFactory();
+ }
+
/**
* @return the id for this AjCompiler
*/
diff --git a/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java b/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java
index 46db93884..49e0085b5 100644
--- a/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java
+++ b/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java
@@ -40,6 +40,7 @@ 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;
+import org.aspectj.weaver.CustomMungerFactory;
/**
* Build Manager which drives the build for a given AjCompiler.
@@ -65,6 +66,14 @@ public class AjdeCoreBuildManager {
AsmManager.attemptIncrementalModelRepairs = true;
}
+ public void setCustomMungerFactory(CustomMungerFactory factory) {
+ ajBuildManager.setCustomMungerFactory(factory);
+ }
+
+ public CustomMungerFactory getCustomMungerFactory() {
+ return ajBuildManager.getCustomMungerFactory();
+ }
+
/**
* @param buildFresh - true if want to force a full build, false otherwise
*/