Copy task does not preserve original file creation and modification time

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

3 Likes

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

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