You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2008/09/26 13:35:52 UTC

svn commit: r699282 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/UpToDate.java

Author: bodewig
Date: Fri Sep 26 04:35:52 2008
New Revision: 699282

URL: http://svn.apache.org/viewvc?rev=699282&view=rev
Log:
Improve logging.  PR 45716.

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/UpToDate.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/UpToDate.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/UpToDate.java?rev=699282&r1=699281&r2=699282&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/UpToDate.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/UpToDate.java Fri Sep 26 04:35:52 2008
@@ -192,6 +192,11 @@
                                   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 @@
 
         if (upToDate) {
             Resource[] r = sourceResources.listResources();
-            upToDate = ResourceUtils.selectOutOfDateSources(
+            if (r.length > 0) {
+                upToDate = ResourceUtils.selectOutOfDateSources(
                         this, r, getMapper(), getProject()).length == 0;
+            }
         }
 
         return upToDate;