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.

bindtargets.html 2.5 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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>Bindtargets Task</title>
  20. </head>
  21. <body>
  22. <h2><a name="ant">Bindtargets</a></h2>
  23. <h3>Description</h3>
  24. <p>Make some target the extension of some defined
  25. <a href="../targets.html#extension-points">extension point</a>. It will make the
  26. list of targets dependencies of the extension point.</p>
  27. <p>The bindtargets task may only be used as a top-level task. This means that
  28. it may not be used in a target.</p>
  29. <p><b>Since Ant 1.8.2</b></p>
  30. <h3>Parameters</h3>
  31. <table border="1" cellpadding="2" cellspacing="0">
  32. <tr>
  33. <td valign="top"><b>Attribute</b></td>
  34. <td valign="top"><b>Description</b></td>
  35. <td align="center" valign="top"><b>Required</b></td>
  36. </tr>
  37. <tr>
  38. <td valign="top">targets</td>
  39. <td valign="top">a comma separated list of target names to bind.</td>
  40. <td valign="top" align="center">Yes</td>
  41. </tr>
  42. <tr>
  43. <td valign="top">extensionPoint</td>
  44. <td valign="top">the name of the extension point to bind the targets to.</td>
  45. <td valign="top" align="center">Yes</td>
  46. </tr>
  47. <tr>
  48. <td valign="top">onMissingExtensionPoint</td>
  49. <td valign="top">What to do if this target tries to extend a missing
  50. <a href="../targets.html#extension-points">extension-point</a>. ("fail",
  51. "warn", "ignore").</td>
  52. <td valign="top" align="center">No. Defaults to <code>fail</code></td>
  53. </tr>
  54. </table>
  55. <h3>Examples</h3>
  56. <blockquote><pre>
  57. &lt;bindtargets targets=&quot;build-jar,build-src-jar&quot; extensionPoint=&quot;dist&quot;/&gt;
  58. </pre></blockquote>
  59. </body>
  60. </html>