You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Nicolas Vervelle <ni...@steria.com> on 2005/08/02 15:18:43 UTC

Re: Copy task and timestamp


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