[14982] | 1 | <!--
|
---|
| 2 | Licensed to the Apache Software Foundation (ASF) under one or more
|
---|
| 3 | contributor license agreements. See the NOTICE file distributed with
|
---|
| 4 | this work for additional information regarding copyright ownership.
|
---|
| 5 | The ASF licenses this file to You under the Apache License, Version 2.0
|
---|
| 6 | (the "License"); you may not use this file except in compliance with
|
---|
| 7 | the License. You may obtain a copy of the License at
|
---|
| 8 |
|
---|
| 9 | http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 10 |
|
---|
| 11 | Unless required by applicable law or agreed to in writing, software
|
---|
| 12 | distributed under the License is distributed on an "AS IS" BASIS,
|
---|
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
---|
| 14 | See the License for the specific language governing permissions and
|
---|
| 15 | limitations under the License.
|
---|
| 16 | -->
|
---|
| 17 | <html>
|
---|
| 18 |
|
---|
| 19 | <head>
|
---|
| 20 | <meta http-equiv="Content-Language" content="en-us">
|
---|
| 21 | <link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
|
---|
| 22 | <title>GZip/BZip2 Tasks</title>
|
---|
| 23 | </head>
|
---|
| 24 |
|
---|
| 25 | <body>
|
---|
| 26 |
|
---|
| 27 | <h2><a name="pack">GZip/BZip2</a></h2>
|
---|
| 28 | <h3>Description</h3>
|
---|
| 29 | <p>Packs a resource using the GZip or BZip2 algorithm.
|
---|
| 30 | The output file is only generated if it doesn't exist or the source
|
---|
| 31 | resource is newer.</p>
|
---|
| 32 | <h3>Parameters</h3>
|
---|
| 33 | <table border="1" cellpadding="2" cellspacing="0">
|
---|
| 34 | <tr>
|
---|
| 35 | <td valign="top"><b>Attribute</b></td>
|
---|
| 36 | <td valign="top"><b>Description</b></td>
|
---|
| 37 | <td align="center" valign="top"><b>Required</b></td>
|
---|
| 38 | </tr>
|
---|
| 39 | <tr>
|
---|
| 40 | <td valign="top">src</td>
|
---|
| 41 | <td valign="top">the file to gzip/bzip.</td>
|
---|
| 42 | <td align="center" valign="top">Yes, or a nested resource collection.</td>
|
---|
| 43 | </tr>
|
---|
| 44 | <tr>
|
---|
| 45 | <td valign="top">destfile</td>
|
---|
| 46 | <td valign="top">the destination file to create.</td>
|
---|
| 47 | <td align="center" valign="top" rowspan="2">Exactly one of the two.</td>
|
---|
| 48 | </tr>
|
---|
| 49 | <tr>
|
---|
| 50 | <td valign="top">zipfile</td>
|
---|
| 51 | <td valign="top">the <i>deprecated</i> old name of destfile.</td>
|
---|
| 52 | </tr>
|
---|
| 53 | </table>
|
---|
| 54 | <h4>any <a href="../CoreTypes/resources.html">resource</a> or single element
|
---|
| 55 | resource collection</h4>
|
---|
| 56 |
|
---|
| 57 | <p>The specified resource will be used as src. <em>Since Ant 1.7</em></p>
|
---|
| 58 |
|
---|
| 59 | <h3>Examples</h3>
|
---|
| 60 | <blockquote><pre>
|
---|
| 61 | <gzip src="test.tar" destfile="test.tar.gz"/>
|
---|
| 62 | </pre></blockquote>
|
---|
| 63 | <blockquote><pre>
|
---|
| 64 | <bzip2 src="test.tar" destfile="test.tar.bz2"/>
|
---|
| 65 | </pre></blockquote>
|
---|
| 66 | <blockquote><pre>
|
---|
| 67 | <gzip destfile="archive.tar.gz">
|
---|
| 68 | <url url="http://example.org/archive.tar"/>
|
---|
| 69 | </gzip>
|
---|
| 70 | </pre></blockquote>
|
---|
| 71 | <p>downloads <i>http://example.org/archive.tar</i> and compresses it
|
---|
| 72 | to <i>archive.tar.gz</i> in the project's basedir on the fly.</p>
|
---|
| 73 |
|
---|
| 74 |
|
---|
| 75 | </body>
|
---|
| 76 | </html>
|
---|