Is there a way to avoid overwriting files when using the type:Copy task?
This is my task:
task unpack1(type:Copy) { duplicatesStrategy= DuplicatesStrategy.EXCLUDE delete(rootDir.getPath()+"/tmp") from zipTree(rootDir.getPath()+"/app-war/app.war") into rootDir.getPath()+"/tmp" duplicatesStrategy= DuplicatesStrategy.EXCLUDE from rootDir.getPath()+"/tmp" into "WebContent" }
I want to not specify all files using exclude 'file / file *'.
It seems that duplicatesStrategy= DuplicatesStrategy.EXCLUDE not working. I read about the problem on gradle 0.9, but I am using gradle 2.1.
Is this problem still there?
Or do I not understand how this task should be used properly?
thanks
source share