开发者

Ant Sync task with zipfileset

I'm attempting to synchronize the contents in a zip file with a folder on my system using the ant sync task.

I have the task:

<target name="test-zipfiletest">
  <sync todir="dest">
    <zipfileset src="test.zip"/>
  </sync>
</target>

when i run it things are fine the contents make it to the folder

test-zipfiletest:
[sync] Copying 1 resource to C:\_dev\ide\springsource\workspaces\workspace_builds\install_utils\dest
BUILD SUC开发者_Go百科CESSFUL
Total time: 184 milliseconds

Ok that's great.

BUT... now if i run the task again it deletes the contents:

test-zipfiletest:
 [sync] Removed 3 dangling directories from C:\_dev\ide\springsource\workspaces\workspace_builds\install_utils\dest
 [sync] Removed 1 dangling file from C:\_dev\ide\springsource\workspaces\workspace_builds\install_utils\dest
BUILD SUCCESSFUL
Total time: 148 milliseconds

I would have expected no change and nothing would have been synchronized.... Anyone come across this? Or know how to get this to work properly? thanks, Julian


Well i found the issue - looks like a problem with ant

https://issues.apache.org/bugzilla/show_bug.cgi?id=51462

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜