You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2012/03/10 07:46:28 UTC
svn commit: r1299152 - in /ant/antlibs/compress/trunk: docs/archive.html
src/main/org/apache/ant/compress/taskdefs/Tar.java
Author: bodewig
Date: Sat Mar 10 06:46:27 2012
New Revision: 1299152
URL: http://svn.apache.org/viewvc?rev=1299152&view=rev
Log:
adapt to changes in tar package, now supports big (or negative) file modification times or big group numbers as well
Modified:
ant/antlibs/compress/trunk/docs/archive.html
ant/antlibs/compress/trunk/src/main/org/apache/ant/compress/taskdefs/Tar.java
Modified: ant/antlibs/compress/trunk/docs/archive.html
URL: http://svn.apache.org/viewvc/ant/antlibs/compress/trunk/docs/archive.html?rev=1299152&r1=1299151&r2=1299152&view=diff
==============================================================================
--- ant/antlibs/compress/trunk/docs/archive.html (original)
+++ ant/antlibs/compress/trunk/docs/archive.html Sat Mar 10 06:46:27 2012
@@ -310,16 +310,17 @@
support is not complete.</p>
<p>The Compress Antlib follows Commons Compress' support. Currently
- the format affects two areas, files bigger than 8 GiB and entries
- with names longer than 100 characters. For Commons Compress these
- areas can be configured separately while the Antlib chooses them
- based on a single format attribute.</p>
+ the format affects two areas, files bigger than 8 GiB or that need
+ other numeric values not fitting into the traditional tar headers
+ and entries with names longer than 100 characters. For Commons
+ Compress these areas can be configured separately while the Antlib
+ chooses them based on a single format attribute.</p>
<table border="1" cellpadding="2" cellspacing="0">
<tr>
<td valign="top"><b>Format Attribute</b></td>
- <td valign="top"><b>Files bigger 8GiB</b></td>
- <td valign="top"><b>Entry Names longer 100 characters</b></td>
+ <td valign="top"><b>Numeric values too big like files bigger 8GiB</b></td>
+ <td valign="top"><b>Entry names longer 100 characters</b></td>
<td valign="top"><b>Notes</b></td>
</tr>
<tr>
Modified: ant/antlibs/compress/trunk/src/main/org/apache/ant/compress/taskdefs/Tar.java
URL: http://svn.apache.org/viewvc/ant/antlibs/compress/trunk/src/main/org/apache/ant/compress/taskdefs/Tar.java?rev=1299152&r1=1299151&r2=1299152&view=diff
==============================================================================
--- ant/antlibs/compress/trunk/src/main/org/apache/ant/compress/taskdefs/Tar.java (original)
+++ ant/antlibs/compress/trunk/src/main/org/apache/ant/compress/taskdefs/Tar.java Sat Mar 10 06:46:27 2012
@@ -50,15 +50,18 @@ public class Tar extends ArchiveBase {
}
else if (format.equals(Format.GNU)) {
o.setLongFileMode(TarArchiveOutputStream.LONGFILE_GNU);
- o.setBigFileMode(TarArchiveOutputStream.BIGFILE_STAR);
+ o.setBigNumberMode(TarArchiveOutputStream
+ .BIGNUMBER_STAR);
}
else if (format.equals(Format.STAR)) {
o.setLongFileMode(TarArchiveOutputStream.LONGFILE_POSIX);
- o.setBigFileMode(TarArchiveOutputStream.BIGFILE_STAR);
+ o.setBigNumberMode(TarArchiveOutputStream
+ .BIGNUMBER_STAR);
}
else if (format.equals(Format.PAX)) {
o.setLongFileMode(TarArchiveOutputStream.LONGFILE_POSIX);
- o.setBigFileMode(TarArchiveOutputStream.BIGFILE_POSIX);
+ o.setBigNumberMode(TarArchiveOutputStream
+ .BIGNUMBER_POSIX);
}
return o;
}