Browse Source

Fixed what looks like a typo in the error message.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268062 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 25 years ago
parent
commit
c020a34a51
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/Copy.java

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

@@ -203,8 +203,8 @@ public class Copy extends Task {
throw new BuildException("One of destfile or destdir must be set.");
}

if (file != null && destFile != null && file.exists() && file.isDirectory()) {
throw new BuildException("Use the dir attribute to copy directories.");
if (file != null && file.exists() && file.isDirectory()) {
throw new BuildException("Use a fileset to copy directories.");
}

if (destFile != null && filesets.size() > 0) {


Loading…
Cancel
Save