Stefan Bodewig
098280bc27
make new zipFile signature final
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@901063 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
dd92def3ae
try to make ZipExtraField change in zip backwards compatible for subclasses that override zipFile. PR 48541
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@900082 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
73456f461b
really preserve extra fields
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@900064 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
f2d99c202b
create parent directory of archive in <zip> and <tar> if needed. PR 45377. Based on patch by Remie Bolte
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@807960 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
ffe7ce3c54
log stuff when actually creating the archive
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@794639 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
d18b665886
extract method
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@794274 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
a4c9863544
don't compare timestamps on directories but add missing dirs
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@794255 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
50558dd274
don't ignore directory resources when performing up-to-date checks
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@794215 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
4b52f604ad
alphasort directories read from non-FileSet resource collections - DirectoryScanner already sorts them appropriately for FileSets
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@794214 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
e24b8aa6a0
new zip logic bypassed overridden method in jar and broke manifest/index logic
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@794212 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
5c440d2481
preserve ZIP extra fields
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@794204 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
a6e42833f6
preserve timestamps for directories added to a zip archive (and potentially zip extra fields as well)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@794198 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
c341e8606d
refactor zip archive creation logic into smaller chunks
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@794177 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
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
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
Jesse N. Glick
970247d771
#45902 : <zip> (without dofilesonly="true") sometimes recreated archives unnecessarily.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@738330 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
edb0dd9582
use adapter instead of instanceof checks
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@718387 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
27868015eb
whitespace
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@710102 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
ee0fc90c1a
make sure log messages to get emmitted twice in double-pass mode. PR 39426.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@710101 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Stefan Bodewig
8aaa005834
close streams passed in to zipFile(InputStream, ...). PR 42632.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@706674 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
Matthew Jason Benson
00829ad00c
[43348] Use FileProvider interface
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@668724 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Jacobus Martinus Kruithof
94dd480d07
request from cactus team, backward incompatible change in FileUtils made backward compatible
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@608939 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
a914355da2
more magic numbers
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@577308 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jacobus Martinus Kruithof
857411cff1
TempFile changes (ctd)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@574360 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
7896dac845
fix for bugzilla 43121 - war task inconsistent bahaviour
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@567744 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
8b0f5b8c9b
reducing the size of the big method
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@567589 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Jacobus Martinus Kruithof
7627a966ee
Reviewed Jar (and parts of Zip) because of BR 42632
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@552218 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Kevin Jackson
36a87a6101
-use FileUtils.close
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@502509 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
0a5cf98f65
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@476580 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
b8244eaa8f
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@475987 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Peter Reilly
f958e23640
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@470587 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
Matthew Jason Benson
d5fa871520
<zip filesonly="true"> included empty directories. Bugzilla report 40258.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@437804 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Jesse N. Glick
69c95afa02
Some Javadoc corrections.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@432709 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Matthew Jason Benson
43b12b92d9
do not add directories when filesonly is true.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@430489 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Steve Loughran
4ce923bc7d
bug 36033; javadocs incorrect
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@419097 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Jacobus Martinus Kruithof
0df2b1de3f
Minor updates based on the input of Dave Brosius
pr: 39320
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@397298 13f79535-47bb-0310-9956-ffa450edef68
20 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
20 years ago
Stefan Bodewig
ef830de68e
Add support for arbitrary resource collections to <zip> and friends, preserve permissions read via a <tarfileset>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@349643 13f79535-47bb-0310-9956-ffa450edef68
20 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
Antoine Levy-Lambert
c8d28cf5ba
add at since tag for new method
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278144 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Antoine Levy-Lambert
500030a537
Make Zip#createEmptyZip be called again when empty zips need to be created
(similar for overrides in superclasses)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278143 13f79535-47bb-0310-9956-ffa450edef68
21 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
Peter Reilly
ab3f805895
NPE when adding comment to zip file that is not there
PR: 33779
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277746 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
a18bd33107
On second thought, this seems to be the real fix for
PR: 33412
when updating an archive, we never want to drop files from the
original archive, no matter what the current default excludes setting
says.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277701 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
782e451151
<zip> update ignored defaultexcludes, PR 33412
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277685 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
Peter Reilly
cd67785ad9
javadoc
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277385 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
8d72468ce0
Add support of zip comment.
PR: 22793
Obtained from: Larry Shatzer
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277383 13f79535-47bb-0310-9956-ffa450edef68
21 years ago