1 | <html>
|
---|
2 |
|
---|
3 | <head>
|
---|
4 | <meta http-equiv="Content-Language" content="en-us">
|
---|
5 | <title>GUnzip/BUnzip2 Task</title>
|
---|
6 | <link rel="stylesheet" type="text/css" href="../stylesheets/antmanual.css">
|
---|
7 | </head>
|
---|
8 |
|
---|
9 | <body>
|
---|
10 |
|
---|
11 | <h2><a name="unpack">GUnzip/BUnzip2</a></h2>
|
---|
12 | <h3>Description</h3>
|
---|
13 | <p>Expands a file packed using GZip or BZip2.</p>
|
---|
14 |
|
---|
15 | <p>If <i>dest</i> is a directory the name of the destination file is
|
---|
16 | the same as <i>src</i> (with the ".gz" or ".bz2"
|
---|
17 | extension removed if present). If <i>dest</i> is omitted, the parent
|
---|
18 | dir of <i>src</i> is taken. The file is only expanded if the source
|
---|
19 | file is newer than the destination file, or when the destination file
|
---|
20 | does not exist.</p>
|
---|
21 |
|
---|
22 | <h3>Parameters</h3>
|
---|
23 | <table border="1" cellpadding="2" cellspacing="0">
|
---|
24 | <tr>
|
---|
25 | <td valign="top"><b>Attribute</b></td>
|
---|
26 | <td valign="top"><b>Description</b></td>
|
---|
27 | <td align="center" valign="top"><b>Required</b></td>
|
---|
28 | </tr>
|
---|
29 | <tr>
|
---|
30 | <td valign="top">src</td>
|
---|
31 | <td valign="top">the file to expand.</td>
|
---|
32 | <td align="center" valign="top">Yes</td>
|
---|
33 | </tr>
|
---|
34 | <tr>
|
---|
35 | <td valign="top">dest</td>
|
---|
36 | <td valign="top">the destination file or directory.</td>
|
---|
37 | <td align="center" valign="top">No</td>
|
---|
38 | </tr>
|
---|
39 | </table>
|
---|
40 | <h3>Examples</h3>
|
---|
41 | <blockquote><pre>
|
---|
42 | <gunzip src="test.tar.gz"/>
|
---|
43 | </pre></blockquote>
|
---|
44 | <p>expands <i>test.tar.gz</i> to <i>test.tar</i></p>
|
---|
45 | <blockquote><pre>
|
---|
46 | <bunzip2 src="test.tar.bz2"/>
|
---|
47 | </pre></blockquote>
|
---|
48 | <p>expands <i>test.tar.bz2</i> to <i>test.tar</i></p>
|
---|
49 | <blockquote><pre>
|
---|
50 | <gunzip src="test.tar.gz" dest="test2.tar"/>
|
---|
51 | </pre></blockquote>
|
---|
52 | <p>expands <i>test.tar.gz</i> to <i>test2.tar</i></p>
|
---|
53 | <blockquote><pre>
|
---|
54 | <gunzip src="test.tar.gz" dest="subdir"/>
|
---|
55 | </pre></blockquote>
|
---|
56 | <p>expands <i>test.tar.gz</i> to <i>subdir/test.tar</i> (assuming
|
---|
57 | subdir is a directory).</p>
|
---|
58 |
|
---|
59 | <hr>
|
---|
60 | <p align="center">Copyright © 2000-2001,2004-2005 The Apache Software Foundation. All rights
|
---|
61 | Reserved.</p>
|
---|
62 |
|
---|
63 | </body>
|
---|
64 | </html>
|
---|