bodewig 2003/04/07 09:05:57
Modified: docs/manual/CoreTasks input.html
Log:
Document <input>'s defaultvalue attribute.
PR: 18717
Submitted by: Jan Mat�rne <jan at materne dot de>
Revision Changes Path
1.8 +17 -1 ant/docs/manual/CoreTasks/input.html
Index: input.html
===================================================================
RCS file: /home/cvs/ant/docs/manual/CoreTasks/input.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- input.html 4 Sep 2002 11:05:16 -0000 1.7
+++ input.html 7 Apr 2003 16:05:57 -0000 1.8
@@ -56,6 +56,13 @@
overriden.</td>
<td valign="top" align="center">No</td>
</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>
<h3>Examples</h3>
<pre> <input/></pre>
@@ -95,8 +102,17 @@
<p>Will display the message "Please enter db-username:" and set the
property <code>db.user</code> to the value entered by the user.</p>
+<pre> <input
+ message="Please enter db-username:"
+ addproperty="db.user"
+ defaultvalue="Scott-Tiger"
+ /></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
+<return>).</p>
+
<hr>
-<p align="center">Copyright © 2001-2002 Apache Software Foundation. All
rights
+<p align="center">Copyright © 2001-2003 Apache Software Foundation. All
rights
Reserved.</p>
</body>
</html>