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>Rename Task</title>
|
---|
23 | </head>
|
---|
24 |
|
---|
25 | <body>
|
---|
26 |
|
---|
27 | <h2><a name="rename">Rename</a></h2>
|
---|
28 | <h3><i>Deprecated</i></h3>
|
---|
29 | <p><i>This task has been deprecated. Use the Move task instead.</i></p>
|
---|
30 | <h3>Description</h3>
|
---|
31 | <p>Renames a given file.</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">file to rename.</td>
|
---|
42 | <td valign="top" align="center">Yes</td>
|
---|
43 | </tr>
|
---|
44 | <tr>
|
---|
45 | <td valign="top">dest</td>
|
---|
46 | <td valign="top">new name of the file.</td>
|
---|
47 | <td valign="top" align="center">Yes</td>
|
---|
48 | </tr>
|
---|
49 | <tr>
|
---|
50 | <td valign="top">replace</td>
|
---|
51 | <td valign="top">Enable replacing of existing file (default: on).</td>
|
---|
52 | <td valign="top" align="center">No</td>
|
---|
53 | </tr>
|
---|
54 | </table>
|
---|
55 | <h3>Examples</h3>
|
---|
56 | <pre> <rename src="foo.jar" dest="${name}-${version}.jar"/></pre>
|
---|
57 | <p>Renames the file <code>foo.jar</code> to <code>${name}-${version}.jar</code> (assuming <code>name</code>
|
---|
58 | and <code>version</code> being predefined properties). If a file named <code>${name}-${version}.jar</code>
|
---|
59 | already exists, it will be removed prior to renaming <code>foo.jar</code>.</p>
|
---|
60 |
|
---|
61 |
|
---|
62 | </body>
|
---|
63 | </html>
|
---|
64 |
|
---|