From c9a2d9acbe222b80042995c670fc7f78964f3501 Mon Sep 17 00:00:00 2001 From: aclement Date: Sat, 27 Sep 2008 17:27:53 +0000 Subject: [PATCH] tracking aspects in effect last build --- asm/src/org/aspectj/asm/AsmManager.java | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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); + } + } -- 2.39.5