ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From meta...@locus.apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant Target.java
Date Tue, 28 Nov 2000 02:52:23 GMT
metasim     00/11/27 18:52:22

  Modified:    src/main/org/apache/tools/ant Target.java
  Log:
  Added method to provide access to a Target's tasks.
  
  Revision  Changes    Path
  1.14      +11 -0     jakarta-ant/src/main/org/apache/tools/ant/Target.java
  
  Index: Target.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/Target.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- Target.java	2000/11/25 02:38:34	1.13
  +++ Target.java	2000/11/28 02:52:22	1.14
  @@ -102,6 +102,17 @@
           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);
       }
  
  
  

Mime
View raw message