|
|
@@ -24,17 +24,22 @@ |
|
|
|
|
|
|
|
<body> |
|
|
|
|
|
|
|
<h2><a name="unpack">GUnzip/BUnzip2</a></h2> |
|
|
|
<h2><a name="unpack">GUnzip/BUnzip2/UnXZ</a></h2> |
|
|
|
<h3>Description</h3> |
|
|
|
<p>Expands a resource packed using GZip or BZip2.</p> |
|
|
|
<p>Expands a resource packed using GZip, BZip2 or XZ.</p> |
|
|
|
|
|
|
|
<p>If <i>dest</i> is a directory the name of the destination file is |
|
|
|
the same as <i>src</i> (with the ".gz" or ".bz2" |
|
|
|
the same as <i>src</i> (with the ".gz", ".bz2" or ".xz" |
|
|
|
extension removed if present). If <i>dest</i> is omitted, the parent |
|
|
|
dir of <i>src</i> is taken. The file is only expanded if the source |
|
|
|
resource is newer than the destination file, or when the destination file |
|
|
|
does not exist.</p> |
|
|
|
|
|
|
|
<p>XZ compression support has been added with Apache Ant 1.10.1 and |
|
|
|
depends on external libraries not included in the Ant distribution. |
|
|
|
See <a href="../install.html#librarydependencies">Library |
|
|
|
Dependencies</a> for more information.</p> |
|
|
|
|
|
|
|
<h3>Parameters</h3> |
|
|
|
<table border="1" cellpadding="2" cellspacing="0"> |
|
|
|
<tr> |
|
|
@@ -70,6 +75,10 @@ resource collection</h4> |
|
|
|
</pre></blockquote> |
|
|
|
<p>expands <i>test.tar.bz2</i> to <i>test.tar</i></p> |
|
|
|
<blockquote><pre> |
|
|
|
<uncz src="test.tar.xz"/> |
|
|
|
</pre></blockquote> |
|
|
|
<p>expands <i>test.tar.xz</i> to <i>test.tar</i></p> |
|
|
|
<blockquote><pre> |
|
|
|
<gunzip src="test.tar.gz" dest="test2.tar"/> |
|
|
|
</pre></blockquote> |
|
|
|
<p>expands <i>test.tar.gz</i> to <i>test2.tar</i></p> |
|
|
@@ -104,12 +113,12 @@ is identical to |
|
|
|
</pre> |
|
|
|
|
|
|
|
<p>The same is also true for <code><bunzip2></code> and |
|
|
|
<code><bzip2resource></code>. <code><copy></code> offers |
|
|
|
additional features like <a |
|
|
|
href="../Types/filterchain.html">filtering files</a> on the fly, |
|
|
|
allowing a file to be mapped to multiple destinations, preserving the |
|
|
|
last modified time or a configurable file system timestamp |
|
|
|
granularity.</p> |
|
|
|
<code><bzip2resource></code> or <code>%lt;unxz></code> |
|
|
|
and <code>%lt;xzresource></code>. <code><copy></code> offers |
|
|
|
additional features like <a href="../Types/filterchain.html">filtering |
|
|
|
files</a> on the fly, allowing a file to be mapped to multiple |
|
|
|
destinations, preserving the last modified time or a configurable file |
|
|
|
system timestamp granularity.</p> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|