From c020a34a51ecf8388b02d47045ec6457b627db92 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Fri, 6 Oct 2000 07:27:33 +0000 Subject: [PATCH] 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 --- src/main/org/apache/tools/ant/taskdefs/Copy.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/Copy.java b/src/main/org/apache/tools/ant/taskdefs/Copy.java index 3abb064d4..85dd4c226 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Copy.java +++ b/src/main/org/apache/tools/ant/taskdefs/Copy.java @@ -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) {