Stefan Bodewig
598e18997a
log something when expand doesn't extract a file that doesn#t match the patterns
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@804902 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
ea73ec7d72
expose native encoding constant
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@804430 13f79535-47bb-0310-9956-ffa450edef68
16 years ago
Stefan Bodewig
37d7a6b679
provide access to encoding stuff in unzip, hide it in untar
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@799730 13f79535-47bb-0310-9956-ffa450edef68
16 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
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
5019b99eb6
New attribute allows stripping of leading path spec from files before extracting them. PR 28911.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@677878 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
e7e99f061c
more explicit existence chacks in unzip/tar. PR 44843
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@677860 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
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
Steve Loughran
613f1f3339
extra diags when expand and untar fail
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@667588 13f79535-47bb-0310-9956-ffa450edef68
17 years ago
Peter Reilly
f3e4a4790e
magic numbers
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@576370 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
e3e9f1e819
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@565102 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Steve Loughran
1b772899ee
I know, lets have a more detailed error message when expand fails than just "expand failed"
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@552475 13f79535-47bb-0310-9956-ffa450edef68
18 years ago
Peter Reilly
249962b3e2
checkstyle:check off for public method
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@490597 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
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
Stefan Bodewig
62fd696d56
merge multiple patternsets - PR 38973
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@398170 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Antoine Levy-Lambert
4bbd382ebf
cleanup of imports, use FileUtils.close, submitted by Kevin Jackson
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@345265 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Stefan Bodewig
af6780ed14
empty collection != no collection - found by Gump and the jline build
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@292420 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Stefan Bodewig
77cdf2de58
whitespace and 2005
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@292278 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Stefan Bodewig
f027ced8e7
resource collection support for unzip/jar/war/tar
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@292261 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Peter Reilly
4eff7a9987
checkstyle - mostly javadoc
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277905 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jacobus Martinus Kruithof
257dadeaf0
Make use of FileUtils in a uniform way via the getFileUtils method and a static final reference in the using files.
Also removed unused/* imports along the way.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277295 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
d9c1a8c2d5
javadoc
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277293 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
a606cd93fa
remove imports, also modify for loops
Obtained from: Kevin Jackson
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277292 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jacobus Martinus Kruithof
6653c42a77
If we can use File.getParentFile, there is presumably no reason to use FileUtils.getParentFile, right?
(Comment re-used from jglick)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277179 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
0c81c851c9
allow filenamemappers types to be placed directly as a nested element
to <copy>, <execon>, <pathconvert>, <uptodate>, unzip,unjar,unwar, <native2ascii>
testcases and docs to follow
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277130 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
db48fbb829
Various checkstyle violations
Submitted by: Larry Shatzer
And some
(untabify (point-min) (point-max))
on some files.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277063 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
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
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
Conor MacNeill
3a35c7d914
style
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274858 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Conor MacNeill
410129735b
style
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274851 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Conor MacNeill
5b331f6baa
Easy stuff - imports and licence headers
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274768 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
f2eb856ffd
Add support for filename-encodings other than UTF8 to <untar>.
PR: 10504
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274746 13f79535-47bb-0310-9956-ffa450edef68
23 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
23 years ago
Stefan Bodewig
02307f7dea
Make Expand behave like DirectoryScanner if a pattern ends with a
trailing slash or backslash.
PR: 20696
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274692 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
b113154a3a
<unzip> can now deal with self-extracting archives.
PR: 16213
Submitted by: Jason Salter <jasonsalter at hotmail dot com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274512 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
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
608424c650
PR: 11100
revisited. The original patch wouldn't pass Unzip's new
testPatternSetIncludeAndExclude test.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274017 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
ab271c2c60
Testlet is dead
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274014 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Magesh Umasankar
3c2bbbcda3
Real tired of seeing email address being abused.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273610 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Magesh Umasankar
e2d3dfc0c9
Expand tasks did not behave as expected with PatternSets.
PR: 11100
Submitted by: gudnabrsam@yahoo.com
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273572 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Magesh Umasankar
80377e9c76
getParentFile may return null.
Reported by: Bayyapu, Pavan <pavan.bayyapu@sap.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273286 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