Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle Copy Task: How to overwrite existing files?

Tags:

The Copy api doesn't mention a flag/property that can be set. So what's the default action and how can one modify it?


According to this,

As of Gradle 0.9.1, the Copy task always overwrites files. The other strategies are not supported yet.

like image 777
user1329572 Avatar asked Sep 07 '12 14:09

user1329572


1 Answers

As the issue text says, the Copy task overwrites files, and other strategies aren't currently supported. If that's not appropriate in your case, you can always fall back to the Ant task.

like image 188
Peter Niederwieser Avatar answered Sep 17 '22 13:09

Peter Niederwieser