From 212d3c1b66b69b70775df1f172e7d83ed82e285f Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 6 Apr 2009 19:23:40 +0000 Subject: [PATCH] 271201: inpath handles --- ...IncrementalOutputLocationManagerTests.java | 6 ++ .../tools/MoreOutputLocationManagerTests.java | 6 ++ .../MultiProjTestOutputLocationManager.java | 6 ++ .../tools/MultiProjectIncrementalTests.java | 80 ++++++++++++++++++- .../tools/OutputLocationManagerTests.java | 6 ++ 5 files changed, 100 insertions(+), 4 deletions(-) diff --git a/tests/src/org/aspectj/systemtest/incremental/tools/IncrementalOutputLocationManagerTests.java b/tests/src/org/aspectj/systemtest/incremental/tools/IncrementalOutputLocationManagerTests.java index 9a04de9d9..0c13b154b 100644 --- a/tests/src/org/aspectj/systemtest/incremental/tools/IncrementalOutputLocationManagerTests.java +++ b/tests/src/org/aspectj/systemtest/incremental/tools/IncrementalOutputLocationManagerTests.java @@ -12,7 +12,9 @@ package org.aspectj.systemtest.incremental.tools; import java.io.File; import java.util.ArrayList; +import java.util.Collections; import java.util.List; +import java.util.Map; import org.aspectj.ajde.core.IOutputLocationManager; @@ -50,6 +52,10 @@ public class IncrementalOutputLocationManagerTests extends AbstractMultiProjectI public void reportFileRemove(String outputfile, int filetype) { } + + public Map getInpathMap() { + return Collections.EMPTY_MAP; + } public File getOutputLocationForClass(File compilationUnit) { String path = compilationUnit.getAbsolutePath(); diff --git a/tests/src/org/aspectj/systemtest/incremental/tools/MoreOutputLocationManagerTests.java b/tests/src/org/aspectj/systemtest/incremental/tools/MoreOutputLocationManagerTests.java index 554061291..610e6ba81 100644 --- a/tests/src/org/aspectj/systemtest/incremental/tools/MoreOutputLocationManagerTests.java +++ b/tests/src/org/aspectj/systemtest/incremental/tools/MoreOutputLocationManagerTests.java @@ -12,6 +12,7 @@ package org.aspectj.systemtest.incremental.tools; import java.io.File; import java.util.ArrayList; +import java.util.Collections; import java.util.HashSet; import java.util.Iterator; import java.util.List; @@ -338,6 +339,11 @@ public class MoreOutputLocationManagerTests extends AbstractMultiProjectIncremen public File getOutputLocationForClass(File compilationUnit) { return outputLoc; } + + public Map getInpathMap() { + return Collections.EMPTY_MAP; + } + public File getOutputLocationForResource(File resource) { return outputLoc; diff --git a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjTestOutputLocationManager.java b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjTestOutputLocationManager.java index 2549bee63..a5e93a824 100644 --- a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjTestOutputLocationManager.java +++ b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjTestOutputLocationManager.java @@ -13,6 +13,7 @@ package org.aspectj.systemtest.incremental.tools; import java.io.File; import java.io.IOException; import java.util.ArrayList; +import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -40,6 +41,11 @@ public class MultiProjTestOutputLocationManager implements IOutputLocationManage initLocations(); return classOutputLoc; } + + public Map getInpathMap() { + return Collections.EMPTY_MAP; + } + public File getOutputLocationForResource(File resource) { initLocations(); diff --git a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java index 9bca0f0db..234c6333b 100644 --- a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java +++ b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java @@ -2815,6 +2815,78 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa // alter(p,"inc1"); // build(p); + dumptree(root, 0); + PrintWriter pw = new PrintWriter(System.out); + try { + getModelFor(p).dumprels(pw); + pw.flush(); + } catch (Exception e) { + } + List l = getModelFor(p).getRelationshipMap().get("=inpathHandles/;