Browse Source

don't use copypath

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@707360 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 16 years ago
parent
commit
b35a59d116
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      src/main/org/apache/tools/ant/taskdefs/CopyPath.java

+ 9
- 1
src/main/org/apache/tools/ant/taskdefs/CopyPath.java View File

@@ -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 <copy> available"
+ " since Ant 1.7.0. Don't use it.",
Project.MSG_ERR);

validateAttributes();
String[] sourceFiles = path.list();
if (sourceFiles.length == 0) {


Loading…
Cancel
Save