ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r540164 - /ant/core/trunk/src/main/org/apache/tools/ant/types/selectors/ContainsSelector.java
Date Mon, 21 May 2007 15:10:28 GMT
Author: mbenson
Date: Mon May 21 08:10:27 2007
New Revision: 540164

URL: http://svn.apache.org/viewvc?view=rev&rev=540164
Log:
bail early for empty search content

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/types/selectors/ContainsSelector.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/types/selectors/ContainsSelector.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/selectors/ContainsSelector.java?view=diff&rev=540164&r1=540163&r2=540164
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/types/selectors/ContainsSelector.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/types/selectors/ContainsSelector.java Mon
May 21 08:10:27 2007
@@ -163,7 +163,7 @@
         // throw BuildException on error
         validate();
 
-        if (r.isDirectory()) {
+        if (r.isDirectory() || contains.length() == 0) {
             return true;
         }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message