Browse Source

Remove unnecessary exists() check.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276871 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 20 years ago
parent
commit
12f0f8f38e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/Copy.java

+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/Copy.java View File

@@ -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.");
}



Loading…
Cancel
Save