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.

rename.html 1.6 KiB

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