ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/types Commandline.java
Date Mon, 19 Apr 2004 13:41:46 GMT
stevel      2004/04/19 06:41:46

  Modified:    src/main/org/apache/tools/ant/types Commandline.java
  Log:
  accessor to arguments
  
  Revision  Changes    Path
  1.38      +10 -0     ant/src/main/org/apache/tools/ant/types/Commandline.java
  
  Index: Commandline.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/types/Commandline.java,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- Commandline.java	14 Apr 2004 15:42:08 -0000	1.37
  +++ Commandline.java	19 Apr 2004 13:41:46 -0000	1.38
  @@ -24,6 +24,7 @@
   import java.util.List;
   import java.util.ListIterator;
   import java.util.LinkedList;
  +import java.util.Iterator;
   
   import org.apache.tools.ant.BuildException;
   import org.apache.tools.ant.ProjectComponent;
  @@ -598,5 +599,14 @@
           }
           buf.append(DISCLAIMER);
           return buf.toString();
  +    }
  +
  +    /**
  +     * get an iterator to the list
  +     * @since ant1.7
  +     * @return an iterator
  +     */
  +    public Iterator iterator() {
  +        return arguments.iterator();
       }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message