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
|