>  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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to