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/main/org/apache/tools/ant/taskdefs Zip.java
Date Tue, 27 Mar 2001 08:17:15 GMT
bodewig     01/03/27 00:17:15

  Modified:    src/main/org/apache/tools/ant/taskdefs Zip.java
  Log:
  Omit the basedir itself (which would be added as /) from zipfile.
  
  Revision  Changes    Path
  1.35      +3 -0      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Zip.java
  
  Index: Zip.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Zip.java,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- Zip.java	2001/03/09 09:06:58	1.34
  +++ Zip.java	2001/03/27 08:17:14	1.35
  @@ -236,6 +236,9 @@
           if (dirs.length > 0 && fullpath.length() > 0)
               throw new BuildException("fullpath attribute may only be specified for filesets
that specify a single file.");
           for (int i = 0; i < dirs.length; i++) {
  +            if ("".equals(dirs[i])) {
  +                continue;
  +            }
               String name = dirs[i].replace(File.separatorChar,'/');
               if (!name.endsWith("/")) {
                   name += "/";
  
  
  

Mime
View raw message