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>  &lt;input/&gt;</pre>
  @@ -95,8 +102,17 @@
   <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>
   
  +<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>
  -<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>
   </body>
   </html>
  
  
  

Reply via email to