ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@locus.apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant Project.java
Date Sat, 01 Apr 2000 13:48:04 GMT
rubys       00/04/01 05:48:04

  Modified:    src/main/org/apache/tools/ant Project.java
  Log:
  Support UNC filenames (\\server\path\file) on Windows platforms
  PR: 131
  Submitted by: wolf.siberski@tui.de
  
  Revision  Changes    Path
  1.17      +2 -0      jakarta-ant/src/main/org/apache/tools/ant/Project.java
  
  Index: Project.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/Project.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- Project.java	2000/03/28 20:40:16	1.16
  +++ Project.java	2000/04/01 13:48:04	1.17
  @@ -424,6 +424,8 @@
       public File resolveFile(String fileName) {
           // deal with absolute files
           if (fileName.startsWith("/")) return new File( fileName );
  +        if (fileName.startsWith(System.getProperty("file.separator"))) 
  +            return new File( fileName );
   
           // Eliminate consecutive slashes after the drive spec
           if (fileName.length() >= 2 &&
  
  
  

Mime
View raw message