From 12f0f8f38ee8c58db09a72b52eb4681b469806b8 Mon Sep 17 00:00:00 2001 From: Matthew Jason Benson Date: Mon, 20 Sep 2004 20:16:22 +0000 Subject: [PATCH] Remove unnecessary exists() check. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276871 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/Copy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/Copy.java b/src/main/org/apache/tools/ant/taskdefs/Copy.java index beb24b3d9..0592fe7c9 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Copy.java +++ b/src/main/org/apache/tools/ant/taskdefs/Copy.java @@ -467,7 +467,7 @@ public class Copy extends Task { 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."); }