Browse Source

Added method to provide access to a Target's tasks.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268248 13f79535-47bb-0310-9956-ffa450edef68
master
metasim 24 years ago
parent
commit
22108fb036
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      src/main/org/apache/tools/ant/Target.java

+ 11
- 0
src/main/org/apache/tools/ant/Target.java View File

@@ -102,6 +102,17 @@ public class Target {
tasks.addElement(task);
}

/**
* Get the current set of tasks to be executed by this target.
*
* @return The current set of tasks.
*/
public Task[] getTasks() {
Task[] retval = new Task[tasks.size()];
tasks.copyInto(retval);
return retval;
}

public void addDependency(String dependency) {
dependencies.addElement(dependency);
}


Loading…
Cancel
Save