You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

gunzip.html 1.7 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>Ant User Manual</title>
  5. </head>
  6. <body>
  7. <h2><a name="gunzip">GUnzip</a></h2>
  8. <h3>Description</h3>
  9. <p>Expands a GZip file.</p>
  10. <p>If <i>dest</i> is a directory the name of the destination file is
  11. the same as <i>src</i> (with the &quot;.gz&quot; extension removed if
  12. present). If <i>dest</i> is omitted, the parent dir of <i>src</i> is
  13. taken. The file is only expanded if the source file is newer than the
  14. destination file, or when the destination file does not exist.</p>
  15. <h3>Parameters</h3>
  16. <table border="1" cellpadding="2" cellspacing="0">
  17. <tr>
  18. <td valign="top"><b>Attribute</b></td>
  19. <td valign="top"><b>Description</b></td>
  20. <td align="center" valign="top"><b>Required</b></td>
  21. </tr>
  22. <tr>
  23. <td valign="top">src</td>
  24. <td valign="top">the file to expand.</td>
  25. <td align="center" valign="top">Yes</td>
  26. </tr>
  27. <tr>
  28. <td valign="top">dest</td>
  29. <td valign="top">the destination file or directory.</td>
  30. <td align="center" valign="top">No</td>
  31. </tr>
  32. </table>
  33. <h3>Examples</h3>
  34. <blockquote>
  35. <p><code>&lt;gunzip src=&quot;test.tar.gz&quot;/&gt;</code></p>
  36. </blockquote>
  37. <p>expands <i>test.tar.gz</i> to <i>test.tar</i></p>
  38. <blockquote>
  39. <p><code>&lt;gunzip src=&quot;test.tar.gz&quot; dest=&quot;test2.tar&quot;/&gt;</code></p>
  40. </blockquote>
  41. <p>expands <i>test.tar.gz</i> to <i>test2.tar</i></p>
  42. <blockquote>
  43. <p><code>&lt;gunzip src=&quot;test.tar.gz&quot; dest=&quot;subdir&quot;/&gt;</code></p>
  44. </blockquote>
  45. <p>expands <i>test.tar.gz</i> to <i>subdir/test.tar</i> (assuming
  46. subdir is a directory).</p>
  47. <hr>
  48. <p align="center">Copyright &copy; 2000,2001 Apache Software Foundation. All rights
  49. Reserved.</p>
  50. </body>
  51. </html>