Browse Source

Make <depend> less verbose if it doesn't do anything.

PR: 27540
Submitted by:	Rob Oxspring <roxspring at imapmail dot org>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276202 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 21 years ago
parent
commit
8a0dc2deaf
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/depend/Depend.java

+ 9
- 1
src/main/org/apache/tools/ant/taskdefs/optional/depend/Depend.java View File

@@ -632,8 +632,16 @@ public class Depend extends MatchingTask {
int count = deleteAllAffectedFiles();

long duration = (System.currentTimeMillis() - start) / 1000;
final int summaryLogLevel;
if(count>0) {
summaryLogLevel = Project.MSG_INFO;
} else {
summaryLogLevel = Project.MSG_DEBUG;
}
log("Deleted " + count + " out of date files in "
+ duration + " seconds");
+ duration + " seconds", summaryLogLevel);
} catch (Exception e) {
throw new BuildException(e);
}


Loading…
Cancel
Save