New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change Zip4j in favor of commons-compress #15
Comments
Sorry commons-compress only compresses data, not uncompress. I will continue researching for a library but I think we need a way to face the problem described with tar files. |
Done, I have a POC for using zip, bzip, gzip, tar, and so on. I will create a PR as soon as possible. |
awesome, I believe somebody will review it :) |
Cool. Currently the only thing that don't work (making some research) is setting Posix permissions of zip files (works with tar and gzip) to uncompress directory. |
@lordofthejars It depends on the way it's decompressed. If it's done by Java's Zip implementation, you won't be probably able to simply restore the permissions, because Java doesn't have this kind of access to files afaik. Which brings me to a question how is the |
well I am using commons-compress which in case of tar and gzip give you this information. |
Done!!! Now I can start to collaborate. I have no permissions, but can I assign me the issues I have just opened? Thanks |
Related with https://issues.jboss.org/browse/ARQ-1864 |
Where is the PR? :-) |
I have the whole implementation at home, but writing some tests before 2014-10-06 14:00 GMT+02:00 Karel Piwko notifications@github.com:
+----------------------------------------------------------+ |
Moreover I have implemented for tar, tar.gz and zip so I think this is an 2014-10-06 14:32 GMT+02:00 Alex Soto asotobu@gmail.com:
+----------------------------------------------------------+ |
…lso adds a TarTool.
Closing, this was resolved by lordofthejars@3301929 |
UnZip tool is based on zip4j library. The problem is that sometimes the files are tar, gzip, 7z, or arj. I suggest to change zip4j to commons-compress which supports a lot of compress algorithms in order to be able to write some Tool like UnzipTool, UntarTool and so on and even a generic UnCompressTool which you set the algorithm to be used.
http://search.maven.org/#artifactdetails%7Corg.apache.commons%7Ccommons-compress%7C1.8.1%7Cjar
The good news is that this library is maintained as well (last version released is from May 2014.
Again if you agree I will implement the change.
Note: that I have never found this error because I download zip files but today it is the first time I have found this barrier.
Of course another approach is to use GZipIS but because we are already using zip4j we can drop it and add this library.
The text was updated successfully, but these errors were encountered: