2011-02-17 34 views
1
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 - 指向appserver deploy文件夹。解压缩任务覆盖目标文件

+1

你能给我们你正在使用的ANT脚本来进行解压吗? – SamG 2011-02-17 11:02:23

+0

我已经添加了ANT脚本 – user339108 2011-02-18 11:55:57

回答

2

有关ant unzipoverwrite参见this discussion参数。它看起来像overwrite总是发生时,如果档案中的时间戳比目的地中的新。讨论为此提供了一种解决方法。