Browse Source

fix error message in copy task.

PR: 4687
Submitted By: peterlynch@mindspring.com


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269885 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 23 years ago
parent
commit
6d3fa23159
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

@@ -289,11 +289,11 @@ public class Copy extends Task {
}

if (destFile != null && destDir != null) {
throw new BuildException("Only one of destfile and destdir may be set.");
throw new BuildException("Only one of tofile and todir may be set.");
}

if (destFile == null && destDir == null) {
throw new BuildException("One of destfile or destdir must be set.");
throw new BuildException("One of tofile or todir must be set.");
}

if (file != null && file.exists() && file.isDirectory()) {


Loading…
Cancel
Save