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: how to set a property to the latest file
Date Tue, 29 May 2007 08:23:06 GMT
Just an idea: a combination of <fileset> <restrict> <date> and <sort>



Jan

>-----Urspr√ľngliche Nachricht-----
>Von: Derek Haskin [mailto:dhaskin@au1.ibm.com] 
>Gesendet: Montag, 28. Mai 2007 06:10
>An: user@ant.apache.org
>Betreff: how to set a property to the latest file
>
>Hi,
>
>How do you set a property to using a wild card to a particular 
>file in a
>directory.
>
>Example:
>I want to set a property to the first occurence of the 
>following command:-
>   ls -r /tmp/test/des.*.zip
>
>The directory /tmp/test will contain mutliple files that match 
>des.*.zip
>Using ant how to I set a property to the first file that matches.
>
>Thanks.
>
>
>---------------------------------------------------------------------
>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