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.

untar.html 1.3 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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="untar">Untar</a></h2>
  8. <h3>Description</h3>
  9. <p>Untars a tarfile.</p>
  10. <p><strong>Note: </strong>File permissions will not be restored on extracted files.</p>
  11. <p>For JDK 1.1 &quot;last modified time&quot; field is set to current time instead of being
  12. carried from tarfile.</p>
  13. <p>The untar task recognizes the long pathname entries used by GNU tar.</p>
  14. <h3>Parameters</h3>
  15. <table border="1" cellpadding="2" cellspacing="0">
  16. <tr>
  17. <td valign="top"><b>Attribute</b></td>
  18. <td valign="top"><b>Description</b></td>
  19. <td align="center" valign="top"><b>Required</b></td>
  20. </tr>
  21. <tr>
  22. <td valign="top">src</td>
  23. <td valign="top">tarfile to expand.</td>
  24. <td align="center" valign="top">Yes</td>
  25. </tr>
  26. <tr>
  27. <td valign="top">dest</td>
  28. <td valign="top">directory where to store the expanded files.</td>
  29. <td align="center" valign="top">Yes</td>
  30. </tr>
  31. </table>
  32. <h3>Examples</h3>
  33. <blockquote>
  34. <p><code>
  35. &lt;gunzip src=&quot;tools.tar.gz&quot;/&gt;<br>
  36. &lt;untar src=&quot;tools.tar&quot; dest=&quot;${tools.home}&quot;/&gt;
  37. </code></p>
  38. </blockquote>
  39. <hr>
  40. <p align="center">Copyright &copy; 2000,2001 Apache Software Foundation. All rights
  41. Reserved.</p>
  42. </body>
  43. </html>