From 6d3fa23159e8a0ba38e4918ecfb9b3825a0304dd Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Thu, 8 Nov 2001 15:30:09 +0000 Subject: [PATCH] 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 --- 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 d6342948c..783b6c753 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Copy.java +++ b/src/main/org/apache/tools/ant/taskdefs/Copy.java @@ -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()) {