ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r707360 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/CopyPath.java
Date Thu, 23 Oct 2008 12:33:14 GMT
Author: bodewig
Date: Thu Oct 23 05:33:14 2008
New Revision: 707360

URL: http://svn.apache.org/viewvc?rev=707360&view=rev
Log:
don't use copypath

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/CopyPath.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/CopyPath.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/CopyPath.java?rev=707360&r1=707359&r2=707360&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/CopyPath.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/CopyPath.java Thu Oct 23 05:33:14
2008
@@ -32,9 +32,12 @@
 /**
  * Copy the contents of a path to a destination, using the mapper of choice
  *
- * @since Ant 1.7
+ * @since Ant 1.7.0
  *
  * @ant.task category="filesystem"
+ * @deprecated this task should have never been released and was
+ * obsoleted by ResourceCollection support in Copy available since Ant
+ * 1.7.0.  Don't use it.
  */
 
 public class CopyPath extends Task {
@@ -162,6 +165,11 @@
      *             if something goes wrong with the build.
      */
     public void execute() throws BuildException {
+        log("This task should have never been released and was"
+            + " obsoleted by ResourceCollection support in <copy> available"
+            + " since Ant 1.7.0.  Don't use it.",
+            Project.MSG_ERR);
+
         validateAttributes();
         String[] sourceFiles = path.list();
         if (sourceFiles.length == 0) {



Mime
View raw message