Commits

Anonymous committed 9c4a353

Does this pass on Windows?

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@26951813f79535-47bb-0310-9956-ffa450edef68

Comments (0)

Files changed (1)

src/testcases/org/apache/tools/ant/ProjectTest.java

 public class ProjectTest extends TestCase {
 
     private Project p;
+    private String root;
 
     public ProjectTest(String name) {
         super(name);
     public void setUp() {
         p = new Project();
         p.init();
+        root = new File(File.separator).getAbsolutePath();
     }
 
     public void testDataTypes() throws BuildException {
      * adapt file separators to local conventions
      */
     private String localize(String path) {
+        path = root + path.substring(1);
         return path.replace('\\', File.separatorChar).replace('/', File.separatorChar);
     }
 }