plexus-archiver
plexus-archiver copied to clipboard
ZipArchiver.setUpdateMode() doesn't work
I did a quick scan and it seems like there's a copy created (renamedFile), but the content is never added to the destFile. And afterwards the renamedFile is deleted, leaving behind only the destFile with the newly added files.
This is the behavior indeed - a new zip file is created with the new content added and the old one is simply discarded. I've created a simple test case that reproduces the issue.
Do you have an idea how update mode is supposed to work? I guess the same way as the other zip programs - new files are added and existing files replace the ones in the original archive only if they are newer.