Browse Source

Document <input>'s defaultvalue attribute.

PR: 18717
Submitted by:	Jan Mat�rne <jan at materne dot de>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274406 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 22 years ago
parent
commit
d9ac8e5986
1 changed files with 17 additions and 1 deletions
  1. +17
    -1
      docs/manual/CoreTasks/input.html

+ 17
- 1
docs/manual/CoreTasks/input.html View File

@@ -56,6 +56,13 @@ task</a> which means that existing properties cannot be overriden.</p>
overriden.</td> overriden.</td>
<td valign="top" align="center">No</td> <td valign="top" align="center">No</td>
</tr> </tr>
<tr>
<td valign="top">defaultvalue</td>
<td valign="top">Defines the default value of the property to be
created from input. Property value will be set to default if no
input is received.</td>
<td valign="top" align="center">No</td>
</tr>
</table> </table>
<h3>Examples</h3> <h3>Examples</h3>
<pre> &lt;input/&gt;</pre> <pre> &lt;input/&gt;</pre>
@@ -95,8 +102,17 @@ user.&quot;.</p>
<p>Will display the message &quot;Please enter db-username:&quot; and set the <p>Will display the message &quot;Please enter db-username:&quot; and set the
property <code>db.user</code> to the value entered by the user.</p> property <code>db.user</code> to the value entered by the user.</p>


<pre> &lt;input
message=&quot;Please enter db-username:&quot;
addproperty=&quot;db.user&quot;
defaultvalue=&quot;Scott-Tiger&quot;
/&gt;</pre>
<p>Same as above, but will set <code>db.user</code> to the value
<i>Scott- Tiger</i> if the user enters no value (simply types
&lt;return&gt;).</p>

<hr> <hr>
<p align="center">Copyright &copy; 2001-2002 Apache Software Foundation. All rights
<p align="center">Copyright &copy; 2001-2003 Apache Software Foundation. All rights
Reserved.</p> Reserved.</p>
</body> </body>
</html> </html>

Loading…
Cancel
Save