From: aclement Date: Sat, 27 Sep 2008 17:27:53 +0000 (+0000) Subject: tracking aspects in effect last build X-Git-Tag: V1_6_2~20 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c9a2d9acbe222b80042995c670fc7f78964f3501;p=aspectj.git tracking aspects in effect last build --- 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 for which the model has been modified during the // last incremental build private final Set lastBuildChanges = new HashSet(); + + // Record the Set 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); + } + }