ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: AW: cvs commit: ant/docs/manual/CoreTypes resources.html
Date Mon, 08 Aug 2005 16:47:29 GMT
--- Jan.Materne@rzf.fin-nrw.de wrote:

> 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.

I was hoping first, or head, would be enough... a
reverse sort would change one to the other easily
enough.  But I suppose we could change first to head
and add a skip attribute, either or both... Are there
any other opinions on either of the two issues?

-Matt
> 
> 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
> 
> 



		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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


Mime
View raw message