ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: cvs commit: ant/docs/manual/CoreTypes resources.html
Date Mon, 08 Aug 2005 11:12:56 GMT
>  Log:
>  Add the <first> resource collection, plus its parent,
>  BaseResourceCollectionWrapper.


>  /**
>   * ResourceCollection that contains the first <code>count</code>
elements of
>   * another ResourceCollection.
>   * @since Ant 1.7
>   */
>  public class First extends BaseResourceCollectionWrapper {
>      private static final String BAD_COUNT
>          = "count of first resources should be set to an int >= 0";
>  
>      private int count = 1;
>  
>      /**
>       * Set the number of resources to be included.
>       * @param i the count as <code>int</count>.
>       */
>      public synchronized void setCount(int i) {
>          count = i;
>      }
>  


What do you think about an additional "skip" parameter to get resources
nr 3-6?
Same as the tail [1] and head [2] filters.


Jan

[1] http://ant.apache.org/manual/CoreTypes/filterchain.html#tailfilter
[2] http://ant.apache.org/manual/CoreTypes/filterchain.html#headfilter

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


Mime
View raw message