From b35a59d1164b166bf1c0841f776cbc8432a6fb64 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Thu, 23 Oct 2008 12:33:14 +0000 Subject: [PATCH] don't use copypath git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@707360 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/CopyPath.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/CopyPath.java b/src/main/org/apache/tools/ant/taskdefs/CopyPath.java index cd3c3de81..1e4ce9fee 100644 --- a/src/main/org/apache/tools/ant/taskdefs/CopyPath.java +++ b/src/main/org/apache/tools/ant/taskdefs/CopyPath.java @@ -32,9 +32,12 @@ import java.io.IOException; /** * 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 @@ public class CopyPath extends Task { * 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 available" + + " since Ant 1.7.0. Don't use it.", + Project.MSG_ERR); + validateAttributes(); String[] sourceFiles = path.list(); if (sourceFiles.length == 0) {