You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by mb...@apache.org on 2004/08/11 16:12:55 UTC

cvs commit: ant/src/main/org/apache/tools/ant/taskdefs Zip.java

mbenson     2004/08/11 07:12:55

  Modified:    src/main/org/apache/tools/ant/taskdefs Zip.java
  Log:
  Correct subscripts.
  
  Revision  Changes    Path
  1.128     +2 -2      ant/src/main/org/apache/tools/ant/taskdefs/Zip.java
  
  Index: Zip.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Zip.java,v
  retrieving revision 1.127
  retrieving revision 1.128
  diff -u -r1.127 -r1.128
  --- Zip.java	7 Jun 2004 12:26:17 -0000	1.127
  +++ Zip.java	11 Aug 2004 14:12:55 -0000	1.128
  @@ -917,13 +917,13 @@
               Vector resources = new Vector();
               String[] directories = rs.getIncludedDirectories();
               for (int j = 0; j < directories.length; j++) {
  -                if (!"".equals(directories[0]) || !skipEmptyNames) {
  +                if (!"".equals(directories[j]) || !skipEmptyNames) {
                       resources.addElement(rs.getResource(directories[j]));
                   }
               }
               String[] files = rs.getIncludedFiles();
               for (int j = 0; j < files.length; j++) {
  -                if (!"".equals(files[0]) || !skipEmptyNames) {
  +                if (!"".equals(files[j]) || !skipEmptyNames) {
                       resources.addElement(rs.getResource(files[j]));
                   }
               }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org