From d9ac8e59861b89e8df52624f59e10ce216559211 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Mon, 7 Apr 2003 16:05:57 +0000 Subject: [PATCH] Document 's defaultvalue attribute. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR: 18717 Submitted by: Jan Mat�rne git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274406 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/input.html | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docs/manual/CoreTasks/input.html b/docs/manual/CoreTasks/input.html index 3700794fc..2f8580ab5 100644 --- a/docs/manual/CoreTasks/input.html +++ b/docs/manual/CoreTasks/input.html @@ -56,6 +56,13 @@ task which means that existing properties cannot be overriden.

overriden. No + + defaultvalue + Defines the default value of the property to be + created from input. Property value will be set to default if no + input is received. + No +

Examples

  <input/>
@@ -95,8 +102,17 @@ user.".

Will display the message "Please enter db-username:" and set the property db.user to the value entered by the user.

+
  <input
+    message="Please enter db-username:"
+    addproperty="db.user"
+    defaultvalue="Scott-Tiger"
+  />
+

Same as above, but will set db.user to the value +Scott- Tiger if the user enters no value (simply types +<return>).

+
-

Copyright © 2001-2002 Apache Software Foundation. All rights +

Copyright © 2001-2003 Apache Software Foundation. All rights Reserved.

\ No newline at end of file