Index: main/org/apache/tools/ant/taskdefs/Copydir.java
===================================================================
RCS file: /home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Copydir.java,v
retrieving revision 1.12
diff -u -r1.12 Copydir.java
--- main/org/apache/tools/ant/taskdefs/Copydir.java	2000/09/11 10:15:00	1.12
+++ main/org/apache/tools/ant/taskdefs/Copydir.java	2000/09/16 17:48:42
@@ -96,7 +96,7 @@
 
     public void execute() throws BuildException {
         if (srcDir == null) {
-            throw new BuildException("srcdir attribute must be set!", 
+            throw new BuildException("src attribute must be set!", 
                                      location);
         }
 
@@ -107,6 +107,10 @@
 
         if (destDir == null) {
             throw new BuildException("The dest attribute must be set.", location);
+        }
+
+        if (srcDir.equals(destDir)) {
+            log("Warning: src == dest");
         }
 
         DirectoryScanner ds = super.getDirectoryScanner(srcDir);
