nant / nant

NAnt is a free .NET build tool. In theory it is kind of like make without make's wrinkles.
nant.sourceforge.net
GNU General Public License v2.0
260 stars 124 forks source link

Better unzip/zip #20

Open palfrey opened 12 years ago

palfrey commented 12 years ago

SharpZipLib appears to be somewhat out of date, in that it doesn't support anything other than Deflate and Store methods when using ZipInputStream as NAnt is doing. A better library would be nice! SevenZipSharp (http://sevenzipsharp.codeplex.com/) looks interesting, but I haven't investigated it yet.

rmboggs commented 12 years ago

SevenZipSharp does look interesting but it doesn't look like it is supported on *nix/Mono at the moment. Until that happens, I don't believe we can do anything with it. Besides that, I am not sure what else would be a suitable replacement.

dguder commented 12 years ago

I tend to use DotNetZip on Windows. It seems to work on Linux/Mac but this is not officially tested. Maybe we can give it a short shot

The answer to the great question of life, the universe and everything is 42 (Douglas Adams)

rmboggs commented 12 years ago

It is something to look into. I'm not sure about license compatibility though (it is MS-PL).

Do you know if it is able to handle tarball files, bz2, etc?

dguder commented 12 years ago

About tar I did not find anything but bz2 is possible. But in gereral if we think of replacing #ziplib then we need some more ideas what should be able to do with new zip task what is not possible right now.

sfkleach commented 12 years ago

One of the hassles seems to be that does not create executables, so if I have an internal stage that unpacks an executable and repacks it the executables are damaged :(

rmboggs commented 12 years ago

Understandable. Maybe we can look into adding the ability to creating executables with the <zip> task in the near future. I have seen a couple articles online that talk about this subject with sharpziplib.

As far as a replacement for sharpziplib, I have yet to see one that we can use. The ones I have seen so far either require a higher version of .NET, doesn't officially support mono/*nix, and/or there may be license compatibility issues.

savornicesei commented 11 years ago

How about using 7-zip? http://www.7-zip.org/