ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Loading files into concat in a certain order
Date Tue, 24 Jul 2007 06:10:16 GMT
<project>
    <concat>
        <sort>
            <fileset dir="." includes="*.txt"/>
        </sort>
    </concat>
</project>

Jan 

>-----Urspr√ľngliche Nachricht-----
>Von: Alex Egg [mailto:eggie5@gmail.com] 
>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@yahoo.com> wrote:
>>
>>
>> --- Alex Egg <eggie5@gmail.com> 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@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>

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


Mime
View raw message