diff options
author | mkersten <mkersten> | 2003-09-05 06:46:36 +0000 |
---|---|---|
committer | mkersten <mkersten> | 2003-09-05 06:46:36 +0000 |
commit | 244200a94c506b257e1384b970114ad10cab3bd3 (patch) | |
tree | b520e3f74dc2d8c8a78a073cd6fd736ec3f854ad /ajde | |
parent | 58436592bb9fe64341d9013779fe377bb55a24e2 (diff) | |
download | aspectj-244200a94c506b257e1384b970114ad10cab3bd3.tar.gz aspectj-244200a94c506b257e1384b970114ad10cab3bd3.zip |
Made model generation optional.
Diffstat (limited to 'ajde')
-rw-r--r-- | ajde/src/org/aspectj/ajde/BuildManager.java | 4 | ||||
-rw-r--r-- | ajde/src/org/aspectj/ajde/internal/AspectJBuildManager.java | 8 | ||||
-rw-r--r-- | ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java | 3 |
3 files changed, 11 insertions, 4 deletions
diff --git a/ajde/src/org/aspectj/ajde/BuildManager.java b/ajde/src/org/aspectj/ajde/BuildManager.java index b92e65886..289ad197b 100644 --- a/ajde/src/org/aspectj/ajde/BuildManager.java +++ b/ajde/src/org/aspectj/ajde/BuildManager.java @@ -58,12 +58,12 @@ public interface BuildManager { public BuildOptionsAdapter getBuildOptions(); -// public CompilerAdapter getCurrCompiler(); - public boolean isStructureDirty(); public void setStructureDirty(boolean structureDirty); + public void setBuildModelMode(boolean mode); + public void addListener(BuildListener compilerListener); public void removeListener(BuildListener compilerListener); diff --git a/ajde/src/org/aspectj/ajde/internal/AspectJBuildManager.java b/ajde/src/org/aspectj/ajde/internal/AspectJBuildManager.java index 5263b21c1..84e0bb8ec 100644 --- a/ajde/src/org/aspectj/ajde/internal/AspectJBuildManager.java +++ b/ajde/src/org/aspectj/ajde/internal/AspectJBuildManager.java @@ -36,6 +36,7 @@ public class AspectJBuildManager implements BuildManager { private String lastConfigFile = null; private int lastCompileTime = 50; private boolean buildStructureOnly = false; + private boolean buildModelMode = true; public AspectJBuildManager( TaskListManager compilerMessages, @@ -161,7 +162,7 @@ public class AspectJBuildManager implements BuildManager { Ajde.getDefault().logEvent("building with options: " + getFormattedOptionsString(buildOptions, Ajde.getDefault().getProjectProperties())); - succeeded = compilerAdapter.compile(configFile, progressMonitor); + succeeded = compilerAdapter.compile(configFile, progressMonitor, buildModelMode); long timeEnd = System.currentTimeMillis(); lastCompileTime = (int)(timeEnd - timeStart); @@ -225,5 +226,10 @@ public class AspectJBuildManager implements BuildManager { else { return s; } } } + + public void setBuildModelMode(boolean b) { + buildModelMode = b; + } + } diff --git a/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java b/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java index c1b838e28..a56b88695 100644 --- a/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java +++ b/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java @@ -72,10 +72,11 @@ public class CompilerAdapter { this.structureDirty = structureDirty; } - public boolean compile(String configFile, BuildProgressMonitor progressMonitor) { + public boolean compile(String configFile, BuildProgressMonitor progressMonitor, boolean buildModel) { init(); try { AjBuildConfig buildConfig = genBuildConfig(configFile); + buildConfig.setGenerateModelMode(buildModel); if (null == buildConfig) { return false; } |