ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Vervelle <nicolas.verve...@steria.com>
Subject Re: Copy task and timestamp
Date Tue, 02 Aug 2005 13:18:43 GMT


pritesh.saharey@wipro.com wrote:

>Hi All,
>          While you use Copy task it will change the timestamp of that
>file, i.e. if "old.txt" file was created on July 12, 2000 when you copy
>this file on Aug 12, 2005 to certain location Copy task will change its
>timestamp(or modified date) to Aug 12, 2005, hope people are getting me.
>What I want is that Copy task should not change the date modified of the
>old.txt file, it should retain the same old date.
>How can this be achieved, can anybody give thought on this.
>Actually changing of modified date doesn't give the clear picture what
>was the actual modified date of the particular file.
>Can any one help me out?
>
Just use the "preservelastmodified" attribute of <copy>

Nicolas



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message