ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r671299 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Length.java
Date Tue, 24 Jun 2008 19:02:06 GMT
Author: mbenson
Date: Tue Jun 24 12:02:06 2008
New Revision: 671299

URL: http://svn.apache.org/viewvc?rev=671299&view=rev
Log:
bugzilla [45271]; process nonexistent resources with length mode=each

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

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Length.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Length.java?rev=671299&r1=671298&r2=671299&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Length.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Length.java Tue Jun 24 12:02:06
2008
@@ -225,13 +225,12 @@
         for (Iterator i = resources.iterator(); i.hasNext();) {
             Resource r = (Resource) i.next();
             if (!r.isExists()) {
-                log(r + " does not exist", Project.MSG_ERR);
-            } else if (r.isDirectory()) {
-                log(r + " is a directory; length unspecified",
-                    Project.MSG_ERR);
-            } else {
-                h.handle(r);
+                log(r + " does not exist", Project.MSG_WARN);
+            }
+            if (r.isDirectory()) {
+                log(r + " is a directory; length may not be meaningful", Project.MSG_WARN);
             }
+            h.handle(r);
         }
         h.complete();
     }



Mime
View raw message