Browse Source

reset the lists when a new asm created

tags/PRE_251277
aclement 15 years ago
parent
commit
37eb8562e8
1 changed files with 6 additions and 4 deletions
  1. 6
    4
      asm/src/org/aspectj/asm/AsmManager.java

+ 6
- 4
asm/src/org/aspectj/asm/AsmManager.java View File

@@ -86,7 +86,7 @@ public class AsmManager {
// Record the Set<File> for which the model has been modified during the
// last incremental build
private final Set lastBuildChanges = new HashSet();
// Record the Set<File> of aspects that wove the files listed in lastBuildChanges
final Set aspectsWeavingInLastBuild = new HashSet();

@@ -105,6 +105,7 @@ public class AsmManager {
// call initialize on the handleProvider when we create a new ASM
// to give handleProviders the chance to reset any state
handleProvider.initialize();
resetDeltaProcessing();
}

public IHierarchy getHierarchy() {
@@ -1216,11 +1217,12 @@ public class AsmManager {

public void resetDeltaProcessing() {
lastBuildChanges.clear();
aspectsWeavingInLastBuild.clear();
aspectsWeavingInLastBuild.clear();
}

/**
* @return the Set of files for which the structure model was modified (they may have been removed or otherwise rebuilt). Set is empty for a full build.
* @return the Set of files for which the structure model was modified (they may have been removed or otherwise rebuilt). Set is
* empty for a full build.
*/
public Set getModelChangesOnLastBuild() {
return lastBuildChanges;
@@ -1232,7 +1234,7 @@ public class AsmManager {
public Set getAspectsWeavingFilesOnLastBuild() {
return aspectsWeavingInLastBuild;
}
public void addAspectInEffectThisBuild(File f) {
aspectsWeavingInLastBuild.add(f);
}

Loading…
Cancel
Save