~ubuntu-branches/ubuntu/jaunty/ant/jaunty-proposed

« back to all changes in this revision

Viewing changes to docs/manual/CoreTasks/rename.html

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Gybas
  • Date: 2002-02-14 14:28:48 UTC
  • Revision ID: james.westby@ubuntu.com-20020214142848-2ww7ynmqkj31vlmn
Tags: upstream-1.4.1
ImportĀ upstreamĀ versionĀ 1.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
 
 
3
<head>
 
4
<meta http-equiv="Content-Language" content="en-us">
 
5
<title>Ant User Manual</title>
 
6
</head>
 
7
 
 
8
<body>
 
9
 
 
10
<h2><a name="rename">Rename</a></h2>
 
11
<h3><i>Deprecated</i></h3>
 
12
<p><i>This task has been deprecated.  Use the Move task instead.</i></p>
 
13
<h3>Description</h3>
 
14
<p>Renames a given file.</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">file to rename.</td>
 
25
    <td valign="top" align="center">Yes</td>
 
26
  </tr>
 
27
  <tr>
 
28
    <td valign="top">dest</td>
 
29
    <td valign="top">new name of the file.</td>
 
30
    <td valign="top" align="center">Yes</td>
 
31
  </tr>
 
32
  <tr>
 
33
    <td valign="top">replace</td>
 
34
    <td valign="top">Enable replacing of existing file (default: on).</td>
 
35
    <td valign="top" align="center">No</td>
 
36
  </tr>
 
37
</table>
 
38
<h3>Examples</h3>
 
39
<pre>  &lt;rename src=&quot;foo.jar&quot; dest=&quot;${name}-${version}.jar&quot;/&gt;</pre> 
 
40
<p>Renames the file <code>foo.jar</code> to <code>${name}-${version}.jar</code> (assuming <code>name</code>
 
41
 and <code>version</code> being predefined properties). If a file named <code>${name}-${version}.jar</code>
 
42
 already exists, it will be removed prior to renaming <code>foo.jar</code>.</p>
 
43
<hr>
 
44
<p align="center">Copyright &copy; 2000,2001 Apache Software Foundation. All rights
 
45
Reserved.</p>
 
46
 
 
47
</body>
 
48
</html>
 
49