ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r292552 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Checksum.java
Date Thu, 29 Sep 2005 21:08:18 GMT
Author: mbenson
Date: Thu Sep 29 14:08:14 2005
New Revision: 292552

URL: http://svn.apache.org/viewcvs?rev=292552&view=rev
Log:
ensure that property w/ fileset applies to a single file

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

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Checksum.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Checksum.java?rev=292552&r1=292551&r2=292552&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Checksum.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Checksum.java Thu Sep 29 14:08:14
2005
@@ -320,7 +320,8 @@
                                              + "when Property is specified");
                 }
             } else {
-                if (filesets.size() > 1) {
+                if (filesets.size() > 1
+                    || ((FileSet) filesets.get(0)).size() > 1) {
                     throw new BuildException("Multiple files cannot be used "
                                              + "when Property is specified");
                 }



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


Mime
View raw message