31 Commits

Author SHA1 Message Date
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
2009-02-27 17:00:59 +00:00
Jan Materne
4ff97c4cf3 Two more examles.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@738393 13f79535-47bb-0310-9956-ffa450edef68
2009-01-28 07:38:53 +00:00
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
2008-07-18 10:51:30 +00:00
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
2008-07-18 10:13:28 +00:00
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
2008-07-17 14:23:44 +00:00
Stefan Bodewig
535d3552ca document disagreement of different ZIP implementations when it comes to timestamps
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@675882 13f79535-47bb-0310-9956-ffa450edef68
2008-07-11 09:25:30 +00:00
Jan Materne
5447ff9d10 Have found a nice example in an archived mail...
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@467359 13f79535-47bb-0310-9956-ffa450edef68
2006-10-24 15:38:28 +00:00
Stefan Bodewig
782372dee5 remove copyright lines that match my fisrt attempt at a regexp
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@442093 13f79535-47bb-0310-9956-ffa450edef68
2006-09-11 04:33:25 +00:00
Stefan Bodewig
443e397b46 Add license header
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@442089 13f79535-47bb-0310-9956-ffa450edef68
2006-09-11 04:19:00 +00:00
Steve Loughran
19cdd51b13 getting the brackets right, fixing a link
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@409770 13f79535-47bb-0310-9956-ffa450edef68
2006-05-26 22:37:27 +00:00
Matthew Jason Benson
613f5a2be0 Note <files> is a file-only resource collection.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@394115 13f79535-47bb-0310-9956-ffa450edef68
2006-04-14 15:04:54 +00:00
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
2005-10-22 17:58:42 +00:00
Stefan Bodewig
cf5c5625e9 more docs and tests
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@326636 13f79535-47bb-0310-9956-ffa450edef68
2005-10-19 18:37:15 +00:00
Stefan Bodewig
582bc0f7f6 docs and tests for unzip/tar and resource collections
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@306519 13f79535-47bb-0310-9956-ffa450edef68
2005-10-06 03:49:34 +00:00
Jesse N. Glick
2a0bbc499f Removing some gratuitous XHTML-isms. They still break JavaHelp, alas, and the manual is anyway not even strictly
formatted plain HTML, much less XHTML.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278201 13f79535-47bb-0310-9956-ffa450edef68
2005-04-29 18:58:16 +00:00
Peter Reilly
ebd1d6e28d some fixes to align examples
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277869 13f79535-47bb-0310-9956-ffa450edef68
2005-03-10 13:01:55 +00:00
Peter Reilly
f62a1b10b7 add reference to stylesheet for CoreTasks
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277821 13f79535-47bb-0310-9956-ffa450edef68
2005-03-07 18:09:10 +00:00
Steve Loughran
17b08e6f01 minor doc updates
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277615 13f79535-47bb-0310-9956-ffa450edef68
2005-02-07 23:42:21 +00:00
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
2004-10-30 19:44:02 +00:00
Antoine Levy-Lambert
ff348804c1 Copyright owner The Apache Software Foundation
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276069 13f79535-47bb-0310-9956-ffa450edef68
2004-02-09 21:50:10 +00:00
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
2003-07-03 13:02:01 +00:00
Stefan Bodewig
7f2af7960c <tag /> ---> <tag/>
remove some stray CRs
fix some typos

Submitted by:	Larry Shatzer <Larry.Shatzer@Spirent.com>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273291 13f79535-47bb-0310-9956-ffa450edef68
2002-09-04 11:05:19 +00:00
Magesh Umasankar
ca91f8cb7e Merge changes made to 1.5 Beta1.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272826 13f79535-47bb-0310-9956-ffa450edef68
2002-06-01 12:26:43 +00:00
Magesh Umasankar
ccef0f8982 Implement and document a compression attribute for the tar and untar tasks.
Submitted by: Curt Arnold <carnold@houston.rr.com>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272562 13f79535-47bb-0310-9956-ffa450edef68
2002-04-24 03:09:06 +00:00
Stephane Bailliez
e967d77e02 Fix HTML title to be more useful for indexing.
PR: 5020
Reported By: jesse.glick@netbeans.com (Jesse Glick)


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271131 13f79535-47bb-0310-9956-ffa450edef68
2002-02-03 22:00:42 +00:00
Stefan Bodewig
b6a3e9df36 License police on documentation files:
(1) Make sure there is a Copyright notice on all visible files.

(2) Make sure all years in which the file has been modified are
listed.

(3) Make sure the format is consistent, i.e. separate consecutive
years with a dash, not a comma.

When Stephane changed starteam.html it has been 2001 in France but
2002 in Australia - does that mean we add 2002 to the Copyright line
or not?  ;-)


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270652 13f79535-47bb-0310-9956-ffa450edef68
2002-01-10 08:48:33 +00:00
Magesh Umasankar
95fa304e14 1. As suggested by Peter, nixed the attributes outfile & verbose
previously added to Untar, Unjar, Unwar and Unzip, so that these tasks stay
focussed on unarchival and nothing but it.
2. If the Src attribute represents a directory, an exception is thrown, as Stefan
suggested.  Nested Filesets to be used instead.
3. Testcase added to catch this exception.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269985 13f79535-47bb-0310-9956-ffa450edef68
2001-11-21 22:36:12 +00:00
Magesh Umasankar
80d371a3b4 1. Refactored Untar to extend from Expand, as untar is very similar to unjar, unwar and unzip.
2. Added 2 new attributes to these tasks - outfile and verbose
3. Nested Patternsets can be used to specify what files are to be extracted from within the archive.
4. Nested Filesets can be specified to select previously archived files for unarchival (PR: 3074)


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269973 13f79535-47bb-0310-9956-ffa450edef68
2001-11-21 07:31:01 +00:00
Stefan Bodewig
93ee07ad35 Show that Ant is an Apache project.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269839 13f79535-47bb-0310-9956-ffa450edef68
2001-10-30 10:05:39 +00:00
Stefan Bodewig
9e9d8fecc5 Add overwrite attribute to unjar/war/zip and untar - if set to false,
files newer than the entries in the archive will not be replaced.

Default is true for backwards compatibility.

PR: 1667


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269394 13f79535-47bb-0310-9956-ffa450edef68
2001-07-27 06:52:51 +00:00
Conor MacNeill
5337488612 Merge of 1.3 branch changes into the main branch
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268652 13f79535-47bb-0310-9956-ffa450edef68
2001-02-13 12:32:01 +00:00