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.

pack.html 1.9 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
  5. <title>GZip/BZip2 Tasks</title>
  6. </head>
  7. <body>
  8. <h2><a name="pack">GZip/BZip2</a></h2>
  9. <h3>Description</h3>
  10. <p>Packs a resource using the GZip or BZip2 algorithm.
  11. The output file is only generated if it doesn't exist or the source
  12. resource is newer.</p>
  13. <h3>Parameters</h3>
  14. <table border="1" cellpadding="2" cellspacing="0">
  15. <tr>
  16. <td valign="top"><b>Attribute</b></td>
  17. <td valign="top"><b>Description</b></td>
  18. <td align="center" valign="top"><b>Required</b></td>
  19. </tr>
  20. <tr>
  21. <td valign="top">src</td>
  22. <td valign="top">the file to gzip/bzip.</td>
  23. <td align="center" valign="top">Yes, or a nested resource collection.</td>
  24. </tr>
  25. <tr>
  26. <td valign="top">destfile</td>
  27. <td valign="top">the destination file to create.</td>
  28. <td align="center" valign="top" rowspan="2">Exactly one of the two.</td>
  29. </tr>
  30. <tr>
  31. <td valign="top">zipfile</td>
  32. <td valign="top">the <i>deprecated</i> old name of destfile.</td>
  33. </tr>
  34. </table>
  35. <h4>any <a href="../CoreTypes/resources.html">resource</a> or single element
  36. resource collection</h4>
  37. <p>The specified resource will be used as src. <em>Since Ant 1.7</em></p>
  38. <h3>Examples</h3>
  39. <blockquote><pre>
  40. &lt;gzip src=&quot;test.tar&quot; destfile=&quot;test.tar.gz&quot;/&gt;
  41. </pre></blockquote>
  42. <blockquote><pre>
  43. &lt;bzip2 src=&quot;test.tar&quot; destfile=&quot;test.tar.bz2&quot;/&gt;
  44. </pre></blockquote>
  45. <blockquote><pre>
  46. &lt;gzip destfile=&quot;archive.tar.gz&quot;&gt;
  47. &lt;url url="http://example.org/archive.tar"/&gt;
  48. &lt;/gzip&gt;
  49. </pre></blockquote>
  50. <p>downloads <i>http://example.org/archive.tar</i> and compresses it
  51. to <i>archive.tar.gz</i> in the project's basedir on the fly.</p>
  52. <hr>
  53. <p align="center">Copyright &copy; 2000-2005 The Apache Software Foundation. All rights
  54. Reserved.</p>
  55. </body>
  56. </html>