From: aclement Date: Thu, 27 Nov 2008 22:55:57 +0000 (+0000) Subject: 249216:c22: escape path separators in source folder names X-Git-Tag: V1_6_3rc1~88 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f1f16968edf4ef8afdc36246d43697dcedfd2166;p=aspectj.git 249216:c22: escape path separators in source folder names --- 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