user339108
user339108

Reputation: 13101

unzip task overwrites target files

http://ant.apache.org/manual/Tasks/unzip.html - Unzip takes overwrites target files even when overwrite is given as false. What would be the problem here?

<unzip src="MathJax.zip" dest="${appserver.deploy}/ROOT.war" overwrite="false"/>

appserver.deploy - points to the appserver deploy folder.

Upvotes: 1

Views: 1576

Answers (1)

Raghuram
Raghuram

Reputation: 52625

Refer to this discussion on ant unzip and overwrite parameter. It looks like overwrite will always happen if timestamp in the archive is newer than that in the destination. The discussion offers a workaround for this.

Upvotes: 2

Related Questions