Browse Source

Make sure includeEmptyDirs attribute of <delete> does what it promises.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268828 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 24 years ago
parent
commit
f7ef1e4b52
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/Delete.java

+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/Delete.java View File

@@ -322,7 +322,7 @@ public class Delete extends MatchingTask {

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) {


Loading…
Cancel
Save