]> source.dussan.org Git - aspectj.git/commitdiff
creating a fresh AjState object whenever doing a batch build to make
authorjhugunin <jhugunin>
Tue, 6 May 2003 17:44:50 +0000 (17:44 +0000)
committerjhugunin <jhugunin>
Tue, 6 May 2003 17:44:50 +0000 (17:44 +0000)
sure we're doing a completely new build without confusion from previous
state

org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java

index 09fef6dc4be7a974dafa2b7fcc113a2f11d03105..0b3d3717159c62606201619786ac800f210560b6 100644 (file)
@@ -93,6 +93,10 @@ public class AjBuildManager {
         boolean batch) throws IOException, AbortException {
         
         try {
+               if (batch) {
+                       this.state = new AjState(this);
+               }
+               
             boolean canIncremental = state.prepareForNextBuild(buildConfig);
             if (!canIncremental && !batch) { // retry as batch?
                 return doBuild(buildConfig, handler, true);