| AW: Loading files into concat in a certain order | AW: Loading files into concat in a certain order 2007-07-24 - By Jan.Materne@(protected)
<project> <concat> <sort> <fileset dir="." includes="*.txt"/> </sort> </concat> </project>
Jan
>-----Urspr?ngliche Nachricht----- >Von: Alex Egg [mailto:eggie5@(protected)] >Gesendet: Dienstag, 24. Juli 2007 04:57 >An: Ant Users List >Betreff: Re: Loading files into concat in a certain order > >I'm looking at the (dismal) ant docs on resources and sort, but I can't >figure out how to use it on my file set: ><concat destfile="${temp}/s3/management.css"> > <fileset dir="${temp}/assets/min/css/" includes="*.css"/> > </concat> > >I just want to sort those files by name so they go into concat >alphabeticly. >My files are named 1styles.css, 2styles.css, 3styles.css, etc... > >How can I do this? > >Alex > >On 7/23/07, Matt Benson <gudnabrsam@(protected)> wrote: >> >> >> --- Alex Egg <eggie5@(protected)> wrote: >> >> > I need to load some CSS files into the concat task, >> > but they need to be a >> > certain order. How should I do this? Maybe number >> > the file names? Is there >> > any build in fileset functionality for this? >> > Alex >> > >> >> In Ant 1.7+, you can use any resource collection with >> <concat>. If you need to specify an arbitrary order, >> use a <path> or a <resources> collection. If you can >> sort them in some way, look at the <sort> resource >> collection. >> >> HTH, >> Matt >> >> >> >> ____________________________________________________________ >> ________________________ >> Pinpoint customers who are looking for what you sell. >> http://searchmarketing.yahoo.com/ >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@(protected) >> For additional commands, e-mail: user-help@(protected) >> >> >
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
|
|
 |