Browse Source

setXyZ works as good as setXYZ or setXYz or setXyz, PR 23732

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275468 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 21 years ago
parent
commit
98e0edd7aa
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      docs/manual/develop.html

+ 6
- 1
docs/manual/develop.html View File

@@ -18,7 +18,7 @@
name of the method must begin with <code>set</code>, followed by the name of the method must begin with <code>set</code>, followed by the
attribute name, with the first character of the name in uppercase, and the rest in attribute name, with the first character of the name in uppercase, and the rest in


lowercase. That is, to support an attribute named
lowercase<a href="#footnote-1"><sup>*</sup></a>. That is, to support an attribute named
<code>file</code> you create a method <code>setFile</code>. <code>file</code> you create a method <code>setFile</code>.
Depending on the type of the argument, Ant will perform some Depending on the type of the argument, Ant will perform some
conversions for you, see <a href="#set-magic">below</a>.</li> conversions for you, see <a href="#set-magic">below</a>.</li>
@@ -52,6 +52,11 @@ throws a <code>BuildException</code>. This method implements the task
itself.</li> itself.</li>
</ol> </ol>


<hr>
<p><a name="footnote-1">*</a> Actually the case of the letters after
the first one doesn't really matter to Ant, using all lower case is a
good convention, though.</p>

<h3>The Life-cycle of a Task</h3> <h3>The Life-cycle of a Task</h3>
<ol> <ol>
<li>The task gets instantiated using a no-argument constructor, at parser <li>The task gets instantiated using a no-argument constructor, at parser


Loading…
Cancel
Save