Java Mailing List Archive

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

Apache Ant Archive

» Ant Users List
» Ant Developers List
How can I capture a file 's date to a property?

How can I capture a file 's date to a property?

2007-07-11       - By cknell@(protected)
Reply:     1     2     3     4     5     6     7     8     9     10  

I'm writing a target that will update a file. I'd like to preserve the
exisiting version of the file by renaming it and incorporating its date in the
file name.

I've have found several tasks for copying and renaming files and directories,
but no way to get the file's date-stamp. Am I simply not seeing it, or does ant
really have no means of capturing a file's last modified date (oh, the platform
is Windows)?

--
Charles Knell
cknell@(protected) - email

---------------------------------------------------------------------
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.