From f1f16968edf4ef8afdc36246d43697dcedfd2166 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 27 Nov 2008 22:55:57 +0000 Subject: [PATCH] 249216:c22: escape path separators in source folder names --- .../tools/MultiProjectIncrementalTests.java | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java index 3e81e98e0..293bfe9ec 100644 --- a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java +++ b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java @@ -386,6 +386,38 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa // dumptree(AsmManager.getDefault().getHierarchy().getRoot(), 0); } + // Now the source folders are more complex 'src/java/main' and 'src/java/tests' + public void testModelWithMultipleSourceFolders2() { + initialiseProject("MultiSource"); + // File sourceFolderOne = getProjectRelativePath("MultiSource", "src/java/main"); + // File sourceFolderTwo = getProjectRelativePath("MultiSource", "src2"); + // File sourceFolderThree = getProjectRelativePath("MultiSource", + // "src3"); + addSourceFolderForSourceFile("MultiSource", getProjectRelativePath("MultiSource", "src1/CodeOne.java"), "src/java/main"); + addSourceFolderForSourceFile("MultiSource", getProjectRelativePath("MultiSource", "src2/CodeTwo.java"), "src/java/main"); + addSourceFolderForSourceFile("MultiSource", getProjectRelativePath("MultiSource", "src3/pkg/CodeThree.java"), + "src/java/tests"); + build("MultiSource"); + + IProgramElement srcOne = getModelFor("MultiSource").getHierarchy().findElementForHandleOrCreate( + "=MultiSource/src\\/java\\/main", false); + IProgramElement CodeOneClass = getModelFor("MultiSource").getHierarchy().findElementForHandle( + "=MultiSource/src\\/java\\/main{CodeOne.java[CodeOne"); + IProgramElement srcTwoPackage = getModelFor("MultiSource").getHierarchy().findElementForHandle( + "=MultiSource/src\\/java\\/tests