diff options
author | aclement <aclement> | 2005-04-26 18:07:44 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-04-26 18:07:44 +0000 |
commit | 16963cd868aa65ee5b0c00e3b33372f6ba373571 (patch) | |
tree | 92e9696135fcf049349b412f269d84bd7f7a2aec /ajde | |
parent | 6a9857bdde2616226b6dbe7e5094953c9bd4bf2d (diff) | |
download | aspectj-16963cd868aa65ee5b0c00e3b33372f6ba373571.tar.gz aspectj-16963cd868aa65ee5b0c00e3b33372f6ba373571.zip |
MultiIncrementalSupport: reports build kind when claiming success.
Diffstat (limited to 'ajde')
-rw-r--r-- | ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java b/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java index 8bb83599e..13dc99cf0 100644 --- a/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java +++ b/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java @@ -88,9 +88,7 @@ public class CompilerAdapter { public boolean compile(String configFile, BuildProgressMonitor progressMonitor, boolean buildModel) { if (configFile == null) { - Ajde.getDefault().getErrorHandler().handleError( - "Tried to build null config file." - ); + Ajde.getDefault().getErrorHandler().handleError("Tried to build null config file."); } init(); try { @@ -113,14 +111,17 @@ public class CompilerAdapter { boolean incrementalEnabled = buildConfig.isIncrementalMode() || buildConfig.isIncrementalFileMode(); + boolean successfulBuild; if (incrementalEnabled && nextBuild) { - return buildManager.incrementalBuild(buildConfig, messageHandler); + successfulBuild = buildManager.incrementalBuild(buildConfig, messageHandler); } else { if (incrementalEnabled) { nextBuild = incrementalEnabled; } - return buildManager.batchBuild(buildConfig, messageHandler); + successfulBuild = buildManager.batchBuild(buildConfig, messageHandler); } + IncrementalStateManager.recordSuccessfulBuild(configFile,buildManager.getState()); + return successfulBuild; // } catch (OperationCanceledException ce) { // Ajde.getDefault().getErrorHandler().handleWarning( // "build cancelled by user"); @@ -629,4 +630,9 @@ public class CompilerAdapter { this.buildNotifierAdapter = buildNotifierAdapter; } } + + public void setState(AjState buildState) { + buildManager.setState(buildState); + buildManager.setStructureModel(buildState.getStructureModel()); + } } |