Stefan Bodewig
f21a51dfd3
even more encoding options for zips
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@750072 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
6cd0de1022
Parse central directory part of ZIP extra fields. PR 46637
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@749610 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
6c0ab4d9ac
typos and unused imports
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@749527 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
752d64fa43
improved zip-encoding support for JDK < 1.5, submitted by Wolfgang Glas, merge from commons-compress
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@749368 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
a8c2ab1868
provide options for enhanced encoding support in ZIP, document it. Many thanks to Wolfgang Glas who provided most of the test input as well as patches the new support is based on.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@748593 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
3b7986524b
fix self-assignment
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@748416 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
8a183a492d
optionally read/write InfoZIP unicode fields, merge from commons-compress
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@748147 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
545ff63ab7
use the desired encoding to decode
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@747002 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
8264511a27
use nio for decoding of names - merge from commons-compress rev 746933
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@746934 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
fa57759633
whitespace
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@745932 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
3cb22aa1c6
Support more modern encoding flag where archives signal filenames as UTF-8. Based on submissions by Wolfgang Glas to commons-compress and TAMURA Kent to Ant. PR 45548.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@745930 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
9416f208d9
allow extra fields to be added at the front
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@745537 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
25f451bd36
Add support for InfoZIP invented extra fields for Unicode file names and comments. Submitted by Wolfgang Glas. Merge from commons-compress revision 745528
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@745531 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
817fd31998
fix a bunch of findbugs reported problems in the zip, tar and bzip2 classes. PR 46661
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@741089 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
e73a7f649f
Ignore ZIP extra fields that don't contain the recommended header+length structure - this is what unzip does as well. PR 42940
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@739300 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
601cdf67ba
Make sure ZIP archive is closed even when a RuntimeExpection occurs. PR 46559
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@738853 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
8d48bc6799
Move the zip package into a Java 1.4 world
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@738844 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
9b4b922d2c
fail early if ZipFile is applied to a non-ZIP archive. PR 45463. Suggested by Alison Winters.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@683942 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
7d174c3426
Made up my mind on the fix for PR 35000. Empty != broken, so make it two separate use cases.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@677870 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
549fc1f687
don't trust permissions read from another ZIP file blindly. PR 42122.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@677597 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
4a1038e342
an empty central directory is fine for an empty archive
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@677592 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
80e8b2977b
an archive with an empty central directory is broken. PR 35000. Submitted by Thomas Aglassinger.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@677575 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
b16652b451
feed Deflater smaller chunks because it seems to copy around the data a lot. PR 45396.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@677272 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Peter Reilly
0b6d093f46
magic number
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@579278 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
4c69b551ec
magic numbers
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@569089 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
35cadddc98
more magic numbers
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@568885 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
ddd5fc4276
remove some magic numbers
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@568704 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
8d9358d369
checkstyle: some magic numbers
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@568201 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
201d653d71
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@565089 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
70c67a8e78
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@476569 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
415e089a8d
trailing spaces
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@471921 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Stefan Bodewig
2e897819a8
copy2license.pl
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@439418 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Jesse N. Glick
1a81cc1fdf
Minor optimization to save maybe 1-2Mb of heap used to create a 30Mb ZIP file.
(extraFields is usually empty, so leave null unless really needed.)
Heap usage from <zip> still intense, however - some ZipEntry's (another 1-2Mb)
but mostly String's (9Mb!) from all the FileSet's which are kept in memory.
For the same 30Mb (compressed) ZIP file, need about 15Mb heap at peak.
Not clear whether that could be improved without breaking B/C. Another day.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@432410 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Jacobus Martinus Kruithof
7eb22e8cdc
indicated when methods/classes became deprecated, as to give us the possibility to remove deprecated methods in the future.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@396012 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Stephane Bailliez
32f2e37a95
JDK 1.2 is EOL and documentation is no more available. Point to JDK 5 API
PR: 37203
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@327676 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Matthew Jason Benson
fbb9886634
ResourceCollections
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278337 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Jacobus Martinus Kruithof
34e72a6607
Removed reflection for 1.1 purposes
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278324 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Jacobus Martinus Kruithof
778ee790cb
Throwable caught for 1.1 compatibility only according to comment. As catiching Throwable generally is a bad thing, removed.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278321 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Stefan Bodewig
b977b55da6
<unzip> and <untar> could leave streams open. PR 34893
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278254 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Steve Loughran
a2f33d1681
javadocs
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278164 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Stefan Bodewig
de95ac9a0e
Make Solaris detect Ant jar files as jar files, PR: 32649
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277889 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jacobus Martinus Kruithof
704e2490d3
removed lines with $Revision: x.y $ lines (after verification)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277845 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
2a7681820f
Allo zip to store files with size between 2GB and 4GB
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277688 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
1225a5a849
Added level attribute to zip & subclasses.
PR: 25513
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277577 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stephane Bailliez
71eb2aed78
Reactivate methods disabled in PR 33049.
The equals method was a bit lousy and does not have a real meaning, so I keep it clear that the equals is related to the instance and nothing else. the hashCode method is actually the most important for performance.
I have yet to find a way to unit test it programmatically as I don't understand the Zip task impl. at first glance.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277432 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jacobus Martinus Kruithof
853a43b951
PR: 33049
A zip entry is not equal to another zip entry when the name matches.
Multiple files may have the same name, and have for instance different
offsets.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277346 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
70d1bd4cda
javadoc
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277313 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
ef606c3413
opps
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277311 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
a33db54312
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277310 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
deb89a8e9e
javadoc
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277309 13f79535-47bb-0310-9956-ffa450edef68
21 years ago