diff --git a/src/main/org/apache/tools/ant/taskdefs/Length.java b/src/main/org/apache/tools/ant/taskdefs/Length.java index 27abda151..b7685216d 100755 --- a/src/main/org/apache/tools/ant/taskdefs/Length.java +++ b/src/main/org/apache/tools/ant/taskdefs/Length.java @@ -225,13 +225,12 @@ public class Length extends Task implements Condition { 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(); }