| @@ -125,15 +125,15 @@ public class ImportTest { | |||||
| } | } | ||||
| assumeTrue("Current system does not support Symlinks", new File(ln).exists()); | assumeTrue("Current system does not support Symlinks", new File(ln).exists()); | ||||
| String symlink = "src/etc/testcases/taskdefs/import/symlinks/d3b"; | String symlink = "src/etc/testcases/taskdefs/import/symlinks/d3b"; | ||||
| File symlinkFile = new File(symlink); | |||||
| File symlinkFile = new File(System.getProperty("root"), symlink); | |||||
| assertEquals("'" + ln + " -s d3a " + symlink + "' failed", | assertEquals("'" + ln + " -s d3a " + symlink + "' failed", | ||||
| Runtime.getRuntime().exec(new String[] {ln, "-s", "d3a", symlinkFile.getAbsolutePath()}).waitFor(), 0); | Runtime.getRuntime().exec(new String[] {ln, "-s", "d3a", symlinkFile.getAbsolutePath()}).waitFor(), 0); | ||||
| try { | try { | ||||
| buildRule.configureProject("src/etc/testcases/taskdefs/import/symlinks/d1/p1.xml"); | buildRule.configureProject("src/etc/testcases/taskdefs/import/symlinks/d1/p1.xml"); | ||||
| assertEquals(buildRule.getProject().getProperty("ant.file.p2"), | assertEquals(buildRule.getProject().getProperty("ant.file.p2"), | ||||
| new File("src/etc/testcases/taskdefs/import/symlinks/d2/p2.xml").getAbsolutePath()); | |||||
| new File(System.getProperty("root"), "src/etc/testcases/taskdefs/import/symlinks/d2/p2.xml").getAbsolutePath()); | |||||
| assertEquals(buildRule.getProject().getProperty("ant.file.p3"), | assertEquals(buildRule.getProject().getProperty("ant.file.p3"), | ||||
| new File("src/etc/testcases/taskdefs/import/symlinks/d3b/p3.xml").getAbsolutePath()); | |||||
| new File(System.getProperty("root"), "src/etc/testcases/taskdefs/import/symlinks/d3b/p3.xml").getAbsolutePath()); | |||||
| } finally { | } finally { | ||||
| symlinkFile.delete(); | symlinkFile.delete(); | ||||
| } | } | ||||