bodewig 2004/03/09 07:50:20
Modified: src/main/org/apache/tools/ant/taskdefs/optional/depend Tag:
ANT_16_BRANCH Depend.java
Log:
Merge from HEAD
Revision Changes Path
No revision
No revision
1.38.2.4 +9 -1
ant/src/main/org/apache/tools/ant/taskdefs/optional/depend/Depend.java
Index: Depend.java
===================================================================
RCS file:
/home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/depend/Depend.java,v
retrieving revision 1.38.2.3
retrieving revision 1.38.2.4
diff -u -r1.38.2.3 -r1.38.2.4
--- Depend.java 9 Feb 2004 22:12:26 -0000 1.38.2.3
+++ Depend.java 9 Mar 2004 15:50:20 -0000 1.38.2.4
@@ -632,8 +632,16 @@
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);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]