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 Delete.java
Date Wed, 14 Mar 2001 12:28:29 GMT
bodewig     01/03/14 04:28:28

  Modified:    src/main/org/apache/tools/ant/taskdefs Delete.java
  Log:
  Make sure includeEmptyDirs attribute of <delete> does what it promises.
  
  Revision  Changes    Path
  1.16      +1 -1      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Delete.java
  
  Index: Delete.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Delete.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- Delete.java	2001/03/12 11:46:37	1.15
  +++ Delete.java	2001/03/14 12:28:24	1.16
  @@ -322,7 +322,7 @@
   
           if (dirs.length > 0 && includeEmpty) {
               int dirCount = 0;
  -            for (int j=0; j<dirs.length; j++) {
  +            for (int j=dirs.length-1; j>=0; j--) {
                   File dir = new File(d, dirs[j]);
                   String[] dirFiles = dir.list();
                   if (dirFiles == null || dirFiles.length == 0) {
  
  
  

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


Mime
View raw message