Java Mailing List Archive

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

Apache Ant Archive

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

how to set a property to the latest file

2007-05-28       - By Derek Haskin

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)


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