ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allwicher, Klaus" <Klaus.Allwic...@nuance.com>
Subject RE: Ordered fileset
Date Fri, 12 May 2006 07:17:12 GMT
Hi Scot,

thanks, I had read over the additional 'count' attribute, sorry :-(
With this everything works fine.

@Matt: Thanks also for the suggestion, but we want only to used "offically"
released versions ...

Klaus

> -----Original Message-----
> From: Scot P. Floess [mailto:floess@mindspring.com] 
> Sent: 11 May, 2006 17:28
> To: Ant Users List
> Subject: Re: Ordered fileset
> 
> Klaus:
> 
> Check out the timestampselector in ant contrib.  I see you 
> using the "for" task so I assume you are familiar with ant contrib ;)
> 
>  From the documentation, it has a count attribute "the number 
> of files to find. If more than 1, than the files in the 
> output appear in the order indicated by the |age| attribute" 
> and age "the age of the files to retrieve, either |eldest| or 
> |youngest|. Defaults to |youngest|."
> 
> Allwicher, Klaus wrote:
> > Hi,
> >
> > I have to process different files ordered by their creation 
> date. (In 
> > more detail, I have to import them and have to assure the 
> the contents 
> > of newer archives are not overwritten by the contents of 
> older files).
> > If there a possiblity to define an order for filesets or 
> are there any 
> > other ways to achieve this with standard ANT tasks/types ?
> > Or do I have to write a new/extended fileset by my own ?
> >
> > Currently the ANT target looks something like
> >
> > 	<for param="arc_name">
> > 		<path> <fileset dir="${dir.import}" 
> casesensitive="false"
> > includes="${arc_pattern}" /> </path>
> > 	<sequential>
> > 		<import archive="@{arcname}" />
> > 	</sequential>
> > 	</for>
> >
> > Thanks for you help :-)
> >
> > Klaus
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
> additional 
> > commands, e-mail: user-help@ant.apache.org
> >
> >
> >   
> 
> --
> Scot P. Floess
> 27 Lake Royale
> Louisburg, NC  27549
> 
> 252-478-8087 (Home)
> 919-754-4592 (Work)
> 
> Chief Architect JPlate  http://sourceforge.net/projects/jplate
> Chief Architect JavaPIM http://sourceforge.net/projects/javapim
> 
> 

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


Mime
View raw message