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:21:08 GMT
And in that context - using tail and head inside the name (not first and last) would
be easier for the user. They know the filters already.

Jan

>-----Urspr√ľngliche Nachricht-----
>Von: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
>Gesendet: Montag, 8. August 2005 13:13
>An: dev@ant.apache.org
>Betreff: AW: cvs commit: ant/docs/manual/CoreTypes resources.html
>
>>  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
>
>

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


Mime
View raw message