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);
private String lastConfigFile = null;
private int lastCompileTime = 50;
private boolean buildStructureOnly = false;
+ private boolean buildModelMode = true;
public AspectJBuildManager(
TaskListManager compilerMessages,
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);
else { return s; }
}
}
+
+ public void setBuildModelMode(boolean b) {
+ buildModelMode = b;
+ }
+
}
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;
}