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.

local.html 2.0 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. -->
  15. <html>
  16. <head>
  17. <meta http-equiv="Content-Language" content="en-us">
  18. <link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
  19. <title>Local Task</title>
  20. </head>
  21. <body>
  22. <h2>Local</h2>
  23. <h3>Description</h3>
  24. <p>Adds a local property to the current scope. Property scopes exist at Ant's
  25. various "block" levels. These include targets as well as the
  26. <a href="parallel.html">Parallel</a> and <a href="sequential.html">Sequential</a>
  27. task containers (including <a href="macrodef.html">Macrodef</a> bodies). A local
  28. property at a given scope "shadows" properties of the same name at higher scopes,
  29. including the global scope. Note that using the Local task at the global
  30. level effectively makes the property local to the "anonymous target" in which
  31. top-level operations are carried out; it will not be defined for other targets
  32. in the buildfile. <b>Since Ant 1.8</b></p>
  33. <h3>Parameters</h3>
  34. <table border="1" cellpadding="2" cellspacing="0">
  35. <tr>
  36. <td valign="top"><b>Attribute</b></td>
  37. <td valign="top"><b>Description</b></td>
  38. <td align="center" valign="top"><b>Required</b></td>
  39. </tr>
  40. <tr>
  41. <td valign="top">name</td>
  42. <td valign="top">The property to declare in the current scope</td>
  43. <td valign="top" align="center">Yes</td>
  44. </tr>
  45. </table>
  46. </body>
  47. </html>