Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
AW: how to set a property to the latest file

AW: how to set a property to the latest file

2007-05-29       - By Jan.Materne@(protected)

Just an idea: a combination of <fileset> <restrict> <date> and <sort>


Jan

>-----Urspr?ngliche Nachricht-----
>Von: Derek Haskin [mailto:dhaskin@(protected)]
>Gesendet: Montag, 28. Mai 2007 06:10
>An: user@(protected)
>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@(protected)
>For additional commands, e-mail: user-help@(protected)
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.