diff options
author | aclement <aclement> | 2008-09-27 17:27:53 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-09-27 17:27:53 +0000 |
commit | c9a2d9acbe222b80042995c670fc7f78964f3501 (patch) | |
tree | 100abcb36fb582e8d7f8c85a5ca758689f9b08e6 | |
parent | 9bd7429e83ab61f44cfa773b7186778975f31e00 (diff) | |
download | aspectj-c9a2d9acbe222b80042995c670fc7f78964f3501.tar.gz aspectj-c9a2d9acbe222b80042995c670fc7f78964f3501.zip |
tracking aspects in effect last build
-rw-r--r-- | asm/src/org/aspectj/asm/AsmManager.java | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/asm/src/org/aspectj/asm/AsmManager.java b/asm/src/org/aspectj/asm/AsmManager.java index 6dbd9c456..32bdbac13 100644 --- a/asm/src/org/aspectj/asm/AsmManager.java +++ b/asm/src/org/aspectj/asm/AsmManager.java @@ -86,6 +86,9 @@ 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(); // static { // setReporting("c:/model.nfo",true,true,true,true); @@ -1213,13 +1216,25 @@ public class AsmManager { public void resetDeltaProcessing() { lastBuildChanges.clear(); + aspectsWeavingInLastBuild.clear(); } /** - * @return the Set of files for which the structure model was modified (they may have been removed or otherwise rebuilt) + * @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; } + /** + * @return the Set of aspects that wove files on the last build (either incremental or full build) + */ + public Set getAspectsWeavingFilesOnLastBuild() { + return aspectsWeavingInLastBuild; + } + + public void addAspectInEffectThisBuild(File f) { + aspectsWeavingInLastBuild.add(f); + } + } |