mbenson 2004/09/20 13:16:22
Modified: src/main/org/apache/tools/ant/taskdefs Copy.java
Log:
Remove unnecessary exists() check.
Revision Changes Path
1.74 +2 -2 ant/src/main/org/apache/tools/ant/taskdefs/Copy.java
Index: Copy.java
===================================================================
RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Copy.java,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -r1.73 -r1.74
--- Copy.java 1 Sep 2004 05:38:54 -0000 1.73
+++ Copy.java 20 Sep 2004 20:16:22 -0000 1.74
@@ -467,7 +467,7 @@
throw new BuildException("One of tofile or todir must be set.");
}
- if (file != null && file.exists() && file.isDirectory()) {
+ if (file != null && file.isDirectory()) {
throw new BuildException("Use a fileset to copy directories.");
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]