ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/src/testcases/org/apache/tools/ant ProjectTest.java
Date Wed, 08 Aug 2001 12:02:15 GMT
bodewig     01/08/08 05:02:15

  Modified:    src/testcases/org/apache/tools/ant ProjectTest.java
  Log:
  Does this pass on Windows?
  
  Revision  Changes    Path
  1.5       +3 -0      jakarta-ant/src/testcases/org/apache/tools/ant/ProjectTest.java
  
  Index: ProjectTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/testcases/org/apache/tools/ant/ProjectTest.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ProjectTest.java	2001/08/08 09:01:11	1.4
  +++ ProjectTest.java	2001/08/08 12:02:15	1.5
  @@ -70,6 +70,7 @@
   public class ProjectTest extends TestCase {
   
       private Project p;
  +    private String root;
   
       public ProjectTest(String name) {
           super(name);
  @@ -78,6 +79,7 @@
       public void setUp() {
           p = new Project();
           p.init();
  +        root = new File(File.separator).getAbsolutePath();
       }
   
       public void testDataTypes() throws BuildException {
  @@ -147,6 +149,7 @@
        * adapt file separators to local conventions
        */
       private String localize(String path) {
  +        path = root + path.substring(1);
           return path.replace('\\', File.separatorChar).replace('/', File.separatorChar);
       }
   }
  
  
  

Mime
View raw message