Stefan Bodewig
54d0543e15
prevent empty archive in zip if whenempty is set to skip, PR: 22865
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276540 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
1efa389be2
Push fix for PR#17934 to 1.6.2
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276482 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
b561447312
Don't delete existing file when trying to update a read-only archive, PR: 28419
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276327 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
Stefan Bodewig
7617c7398a
A new roundup attribute on <zip> and related task can be used to
control whether the file modification times inside the archive will
be rounded up or down (since zips only store modification times with
a granularity of two seconds). The default remains to round up.
PR: 17934
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276167 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
5dc8a1418a
add filename to errormessage if unable to rename file in zip task
PR: 24945
Obtained from: Bart Vanhaute
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275695 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
6b62a56cce
More robust cleanup of temporary files, PR 17512
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275490 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Peter Reilly
08084b4e5c
Next round of typo fixes by Larry Shatzer
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275242 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Peter Reilly
9434671efa
removing enum variable
PR: 22345
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275074 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
8975a12087
Add a keepcompression attribute to control the compression of entries
that come from existing archives.
PR: 16084
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275025 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
d13027731c
Only calculate the CRC of STORED entries in <zip> if absolutely necessary.
PR: 21899
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275010 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
39e82431e7
Keep permissions of directories as well when updating a zip archive.
PR: 21308
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274991 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
4653e638dd
Don't use a data descriptor for deflated entries in ZipOutputStream if
we can seek the output. Use this feature in <zip>.
PR: 19195
Submitted by: Richard Evans <richard.evans@retek.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274883 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
Conor MacNeill
e580392c2d
More cleanup
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274776 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
8703d66ca0
Base <zip> and <zipfileset> on new ZipFile code.
This happens mainly for two reasons:
* preserve stored permissions unless the user explicitly overrides them
(PR 2130). This is now fixed for stored files, but not for directories.
* deal with filename encoding of existing archives. Supposed to work
properly now.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274751 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
b498a4535a
Use the new FileUtils#rename method
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274714 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
02305cfec1
Improve fix for PR: 19449.
Don't drop directory entries after we've found out they were outdated,
but simply do not perform timestamp checks on the at all.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274544 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
9e9ac87387
Don't update archives because it lacks directory entries when we are
not going to add directory entries either.
PR: 19449
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274543 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
bddaffe76d
allow to define ZipFileSet(s) outside of Zip task bugrep 17007
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274481 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
5d14cd4e49
prefix attribute of <zipfileset> would not generate directory entries
for the prefix itself.
PR: 18403
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274320 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
fc6826126d
JDK 1.1
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274266 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
8d651ad96d
Fix the bug.
PR: 17780
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274241 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
24436a1c92
Remove email address from sources
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274203 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
c2baa14717
Set file mode correctly for files read from <zipfileset>s.
PR: 17648
Submitted by: Antoine Levy-Lambert
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274201 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
6528412d21
Avoid NPE in <zip> and friends for empty <fileset>s.
Submitted by: Nico Seessle <nico at apache dot org>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274176 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
c89a66172d
Preparing merge to 1.5 branch
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274134 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
88f6a10229
remove logging from ZipScanner.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274101 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Conor MacNeill
f04c145a44
Make message clear when updating and whenempty=skip
PR: 4448
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274067 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
91a07a1f68
Remove the (at least for now) superfluous ResourceScanner interface.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274060 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
1dc8a07905
Remove Jakarta Project from license
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274040 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
1cea69ac67
Remove the ugly hack, but still ensure that jars always at least contain a manifest
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273993 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
07b710cc96
Refactor <zip> and friends.
PR: 10755
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273986 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
a38deb31dc
Move the 'round up to next even second' logic to where it belongs -> out of the library and into the task
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273907 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
f0d9fbab46
Some cosmetics
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273860 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
b15a6630f0
Give proper credit
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273851 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
a9353331a9
Initial fix for the <jar> doesn't update bug, will need some
refinement (see extra mail to list).
PR: 10755
Submitted by: Antoine Levy-Lambert <levylambert at tiscali-dsl dot de>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273848 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
3255fa8ff4
Add support for Unix permissions to <zip> and friends, doing it the
Info-Zip way.
PR: 6492
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273629 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Magesh Umasankar
db9a46b384
The zip task doesn't work correctly if you're using filesetmanifest and update is false - Fix for this problem caused by previous patch.
Submitted by: Brian Deitte <bdeitte@macromedia.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273609 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Magesh Umasankar
90b811d74b
The filesetmanifest attribute of <jar> has been reenabled.
PR: 13296
Submitted by: bdeitte@macromedia.com (Brian Deitte)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273570 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Peter Donald
8f413c1208
Remove unused imports, remove glob imports, sort imports.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273169 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Peter Donald
f9121ee81e
Encapsulate some fields in Task and add some deprecation warnings to coresponding fields.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273157 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Peter Donald
28b68ab7d0
Encapsulate usage of project object rather than allowing objects 7 subclasses acessing a protected variable of their super super super .... class.
Deprecated the variable so that that anyone directly referencing variable will get warning and suggestion to use the accessor.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273155 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Magesh Umasankar
da5a13f8e4
Merge differences between the ANT_15_FINAL branch and the trunk into the trunk.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273081 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Magesh Umasankar
6bd8d6e938
Merge changes made to 1.5 Beta2.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272967 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Conor MacNeill
80080d456c
Reduce a small number of long lines
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272443 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Conor MacNeill
03d0b81deb
Order of modifiers
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272442 13f79535-47bb-0310-9956-ffa450edef68
23 years ago