Browse Source

Improve logging. PR 45716.

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

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

@@ -192,6 +192,11 @@ public class UpToDate extends Task implements Condition {
null, null,
mapperElement.getImplementation()).length == 0;
}
if (!upToDate) {
log(sourceFile.getAbsolutePath()
+ " is newer than (one of) its target(s).",
Project.MSG_VERBOSE);
}
}

// filesets are separate from the rest for performance
@@ -208,8 +213,10 @@ public class UpToDate extends Task implements Condition {

if (upToDate) {
Resource[] r = sourceResources.listResources();
upToDate = ResourceUtils.selectOutOfDateSources(
if (r.length > 0) {
upToDate = ResourceUtils.selectOutOfDateSources(
this, r, getMapper(), getProject()).length == 0;
}
}

return upToDate;


Loading…
Cancel
Save