java - Maintain file permissions when extracting from a zip file using JDK 5 api -
I am using java.util.zip and java.util.ZipEntry so that the contents of a ZIP file successfully on the disk Could be separated. I would like to maintain file permissions set to extract * on file file system.
Can someone talk to me in this "right" way?
It is too old, but since I ended up here ...
This question provides a lot of information:
Basically, you can not store file permissions in zip / jar files, so that you can not keep them safe while extracting your jar (when they are jar Was created to begin with). If you need protected file permissions in the archive and when ExtrasKiting is on, then you need to consider the alternative .tar or .tar.gz / .tar.bz2 format, which is used for most Java creation tools (ant, Gradle, Maven ...)
Comments
Post a Comment