Browse Source

Make attribute und element names in <scriptdef> lowercase (like <macrodef> does) to avoid problems with name="Foo" -> the task X doesn\'t support the attribute foo

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276392 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 21 years ago
parent
commit
7fb49c37c2
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      docs/manual/OptionalTasks/scriptdef.html

+ 5
- 0
docs/manual/OptionalTasks/scriptdef.html View File

@@ -36,6 +36,11 @@ element name. This will return a list of all instances of the nested element.
The instances in this list may be accessed by an integer index. The instances in this list may be accessed by an integer index.
</p> </p>


<p><b>Note:</b> Ant will turn all attribute and element names into all
lowercase names, so even if you use name="SomeAttribute", you'll have
to use "someattribute" to retrieve the attribute's value from the
<code>attributes</code> collection.</p>

<p>The name "project" is a pre-defined reference to the Ant Project. For <p>The name "project" is a pre-defined reference to the Ant Project. For
more information on writing scripts, please refer to the more information on writing scripts, please refer to the
<a href="script.html">&lt;script&gt;</a> task <a href="script.html">&lt;script&gt;</a> task


Loading…
Cancel
Save