Browse Source

whitespace

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

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

@@ -539,20 +539,19 @@ public class Delete extends MatchingTask {
} }


// delete the directory // delete the directory
if (dir != null
&& !usedMatchingTask) {
if (dir != null && !usedMatchingTask) {
if (dir.exists() && dir.isDirectory()) { if (dir.exists() && dir.isDirectory()) {
/*
If verbosity is MSG_VERBOSE, that mean we are doing
regular logging (backwards as that sounds). In that
case, we want to print one message about deleting the
top of the directory tree. Otherwise, the removeDir
method will handle messages for _all_ directories.
*/
if (verbosity == Project.MSG_VERBOSE) {
log("Deleting directory " + dir.getAbsolutePath());
}
removeDir(dir);
/*
If verbosity is MSG_VERBOSE, that mean we are doing
regular logging (backwards as that sounds). In that
case, we want to print one message about deleting the
top of the directory tree. Otherwise, the removeDir
method will handle messages for _all_ directories.
*/
if (verbosity == Project.MSG_VERBOSE) {
log("Deleting directory " + dir.getAbsolutePath());
}
removeDir(dir);
} else if (isDanglingSymlink(dir)) { } else if (isDanglingSymlink(dir)) {
log("Trying to delete directory " + dir.getAbsolutePath() log("Trying to delete directory " + dir.getAbsolutePath()
+ " which looks like a broken symlink.", + " which looks like a broken symlink.",


Loading…
Cancel
Save