ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r699282 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/UpToDate.java
Date Fri, 26 Sep 2008 11:35:52 GMT
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;



Mime
View raw message