ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/tar TarEntry.java
Date Sat, 13 Oct 2001 02:08:57 GMT
donaldp     01/10/12 19:08:57

  Modified:    src/main/org/apache/tools/tar TarEntry.java
  Log:
  Add support for extracting names from Volumes on NetWare.
  
  Submitted by: "Jeff Tulley" <JTULLEY@novell.com>
  
  Revision  Changes    Path
  1.7       +9 -3      jakarta-ant/src/main/org/apache/tools/tar/TarEntry.java
  
  Index: TarEntry.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/tar/TarEntry.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- TarEntry.java	2001/02/04 13:58:17	1.6
  +++ TarEntry.java	2001/10/13 02:08:57	1.7
  @@ -206,10 +206,10 @@
           
               // Strip off drive letters!
               // REVIEW Would a better check be "(File.separator == '\')"?
  -            String Win32Prefix = "Windows";
  -            String prefix = osname.substring(0, Win32Prefix.length());
  +            String win32Prefix = "Windows";
  +            String prefix = osname.substring(0, win32Prefix.length());
           
  -            if (prefix.equalsIgnoreCase(Win32Prefix)) {
  +            if (prefix.equalsIgnoreCase(win32Prefix)) {
                   if (name.length() > 2) {
                       char ch1 = name.charAt(0);
                       char ch2 = name.charAt(1);
  @@ -221,6 +221,12 @@
                       } 
                   } 
               } 
  +            else if (osname.toLowerCase().indexOf("netware") > -1) {
  +                int colon = name.indexOf(':');
  +                if (colon != -1) {
  +                    name=name.substring(colon+1);
  +                }
  +            }
           } 
           
           name = name.replace(File.separatorChar, '/');
  
  
  

Mime
View raw message