Copy task does not preserve original file creation and modification time


(Pavel Trka) #1

Hello, I have problem with Copy task - it is not preserving original file date/time modification time attributes, copied files have all newly set creation/modification time.

I know I can use Ant task (although I didnt try it so I dont know if it will solve the problem) but I want to ask if this is known behaviour and if it is “by design” or if it will be changed in the future.

Im running Gradle 1.2 on windows7 x64 with NTFS filesystem.

Thanks, Pavel

How to preserve time stamps of copy from a zipTree?
(Anton L) #2

It would be good to have an option to preserve such dates.

(jim.gish) #3

Is there a way to do this yet other than by using an ant task? I can’t spot it in the docs.