source: release-kits/lirk3/resources/gs3-release-maker/ant/docs/manual/CoreTasks/unpack.html@ 14982

Last change on this file since 14982 was 14982, checked in by oranfry, 16 years ago

initial import of LiRK3

File size: 1.9 KB
Line 
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
16the same as <i>src</i> (with the &quot;.gz&quot; or &quot;.bz2&quot;
17extension removed if present). If <i>dest</i> is omitted, the parent
18dir of <i>src</i> is taken. The file is only expanded if the source
19file is newer than the destination file, or when the destination file
20does 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&lt;gunzip src=&quot;test.tar.gz&quot;/&gt;
43</pre></blockquote>
44<p>expands <i>test.tar.gz</i> to <i>test.tar</i></p>
45<blockquote><pre>
46&lt;bunzip2 src=&quot;test.tar.bz2&quot;/&gt;
47</pre></blockquote>
48<p>expands <i>test.tar.bz2</i> to <i>test.tar</i></p>
49<blockquote><pre>
50&lt;gunzip src=&quot;test.tar.gz&quot; dest=&quot;test2.tar&quot;/&gt;
51</pre></blockquote>
52<p>expands <i>test.tar.gz</i> to <i>test2.tar</i></p>
53<blockquote><pre>
54&lt;gunzip src=&quot;test.tar.gz&quot; dest=&quot;subdir&quot;/&gt;
55</pre></blockquote>
56<p>expands <i>test.tar.gz</i> to <i>subdir/test.tar</i> (assuming
57subdir is a directory).</p>
58
59<hr>
60<p align="center">Copyright &copy; 2000-2001,2004-2005 The Apache Software Foundation. All rights
61Reserved.</p>
62
63</body>
64</html>
Note: See TracBrowser for help on using the repository browser.