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 2.0 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!DOCTYPE html>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. https://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <html lang="en">
  17. <head>
  18. <link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
  19. <title>Rename Task</title>
  20. </head>
  21. <body>
  22. <h2 id="rename">Rename</h2>
  23. <h3><em><u>Deprecated</u></em></h3>
  24. <p><em>This task has been <u>deprecated</u>. Use the <code>Move</code> task instead.</em></p>
  25. <h3>Description</h3>
  26. <p>Renames a given file.</p>
  27. <h3>Parameters</h3>
  28. <table class="attr">
  29. <tr>
  30. <th scope="col">Attribute</th>
  31. <th scope="col">Description</th>
  32. <th scope="col">Required</th>
  33. </tr>
  34. <tr>
  35. <td>src</td>
  36. <td>file to rename.</td>
  37. <td>Yes</td>
  38. </tr>
  39. <tr>
  40. <td>dest</td>
  41. <td>new name of the file.</td>
  42. <td>Yes</td>
  43. </tr>
  44. <tr>
  45. <td>replace</td>
  46. <td>Enable replacing of existing file.</td>
  47. <td>No; default is <q>on</q></td>
  48. </tr>
  49. </table>
  50. <h3>Examples</h3>
  51. <p>Rename the file <samp>foo.jar</samp> to <samp>${name}-${version}.jar</samp>
  52. (assuming <code>name</code> and <code>version</code> being predefined properties). If a file
  53. named <samp>${name}-${version}.jar</samp> already exists, it will be removed prior to
  54. renaming <samp>foo.jar</samp>.</p>
  55. <pre>&lt;rename src=&quot;foo.jar&quot; dest=&quot;${name}-${version}.jar&quot;/&gt;</pre>
  56. </body>
  57. </html>