From 0b1653b40cf31befcb001dc1d9156d2de4634328 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 6 Apr 2009 19:24:10 +0000 Subject: [PATCH] 271201: inpath handles --- .../compiler/CompilationResultDestinationManager.java | 3 +++ .../aspectj/ajdt/internal/core/builder/AjBuildManager.java | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/CompilationResultDestinationManager.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/CompilationResultDestinationManager.java index 8ea5c2c17..c8b12db84 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/CompilationResultDestinationManager.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/CompilationResultDestinationManager.java @@ -13,6 +13,7 @@ package org.aspectj.ajdt.internal.compiler; import java.io.File; import java.util.List; +import java.util.Map; /** * acts as a bridge from ajde's OutputLocationManager interface to the compiler internals @@ -75,6 +76,8 @@ public interface CompilationResultDestinationManager { */ void reportFileRemove(String outputfile, int filetype); + Map getInpathMap(); + int discoverChangesSince(File dir, long buildtime); // match numbers in IOutputLocationManager - ought to factor into super interface diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java index f9ec2f618..a9eb73111 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java @@ -23,6 +23,7 @@ import java.io.OutputStream; import java.io.PrintStream; import java.util.ArrayList; import java.util.Collection; +import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import java.util.List; @@ -756,7 +757,8 @@ public class AjBuildManager implements IOutputClassFileNameProvider, IBinarySour // if (!AsmManager.isCreatingModel()) // return; - AsmManager structureModel = AsmManager.createNewStructureModel(); + CompilationResultDestinationManager crdm = config.getCompilationResultDestinationManager(); + AsmManager structureModel = AsmManager.createNewStructureModel(crdm==null?Collections.EMPTY_MAP:crdm.getInpathMap()); // AsmManager.getDefault().getRelationshipMap().clear(); IHierarchy model = structureModel.getHierarchy(); String rootLabel = ""; -- 2.39.5