From: mkersten Date: Fri, 5 Sep 2003 06:46:36 +0000 (+0000) Subject: Made model generation optional. X-Git-Tag: V1_1_1~34 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=244200a94c506b257e1384b970114ad10cab3bd3;p=aspectj.git Made model generation optional. --- 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; }