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
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
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
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
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
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
70c67a8e78
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@476569 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
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
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
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
Peter Reilly
5e049f635b
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277305 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jacobus Martinus Kruithof
9fdb1c85ba
Minor update to allow compilation on 1.2.2 again:
cal.getTimeInMillis(); is not available.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277180 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stephane Bailliez
a05d1f1219
First attempt at optimizing the zip code to have decent performance
The performance problem was mainly due to the entry insertion in
the hashtable where all hash code were equals in the hashtable.
I also removed a lot of unecessary Zip(Long|Short) object creation by
adding static methods and suppressed a hashtable.
More can be done, but I tried not to break the interface and have as less code
as possible. The testcase attached in the bug report show that it is now 15% slower than Sun native code and 20% faster than Jazz libs.
Now watch for Gump...
PR: 31930
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277122 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
fdc903238f
Patch in PR# 21996
add a flatten to unzip.
I actually only patched in the mapper nested element support; with that the flatten attribute can only introduce inconsistency (what if you spec a mapper and flatten=true).
And the patch was modified to keep the attributes private, with a getMapper() operation for subclasses (like untar) to get when needed.
Did a bit of cleanup -especially of the unzip tests- while at it.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276981 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
642befb440
Javadoc syntax error corrections
PR: 28998
Obtained from: Jesse Glick
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276466 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
c885f56836
remove authors from files
PR: 27177
Obtained from: J.M. (Martijn) Kruithof
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276208 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
278781dcd6
Copyright owner is The Apache Software Foundation
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276065 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
66555ca10d
Remove trailing spaces in all java files
in order to make checkstyle happy
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276017 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
ca1513552f
Switch to Apache Software License 2.0
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276010 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Peter Reilly
d050f6a18c
remove enum variable
PR: 22336
Obtained from: Robert Stupp, using Jan Mat��rne's checkstyle check
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275076 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
2590a640ce
Remove unused fields
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274936 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Conor MacNeill
66b5bf27b7
style
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274824 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
94ef2fbb4b
Make checkstyle a little happier.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274784 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
6dea74459d
Improve algorithm that searches for the central directory - don't get fooled by signatures appearing inside payload.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274750 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
d5570e5c65
Calendar.HOUR is different from Calendar.HOUR_OF_DAY
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274748 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
ad9c15103d
Finish implementation of ZipFile, use it in Expand (AKA <unzip>).
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274743 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
ec5e77ad32
Initial support for reading of ZIP files - uncomplete as you cannot
get an InputStream to the ZipEntrys yet.
Will be needed to fix PR 10504 as well as to preserve permissions when
updating an archive (no PR yet).
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274742 13f79535-47bb-0310-9956-ffa450edef68
22 years ago