@@ -18,9 +18,6 @@ or as character data nested into the element.</p>
<p>Optinonally a set of valid imput arguments can be defined via the validargs
<p>Optinonally a set of valid imput arguments can be defined via the validargs
attribute. Input task will require the user to reenter values until the entered
attribute. Input task will require the user to reenter values until the entered
value matches one of the predefined.</p>
value matches one of the predefined.</p>
<p>Optionally a set of exit arguments can be defined via the exitargs attribute.
Input task will throw a BuildException with a customisable exit message if the
entered value matches one of the predefined.</p>
<p>Optionally a property can be created from the value entered by the user. This
<p>Optionally a property can be created from the value entered by the user. This
property can then be used during the following build run. Input behaves according
property can then be used during the following build run. Input behaves according
to <a href="property.html">property task</a> which means that existing properties
to <a href="property.html">property task</a> which means that existing properties
@@ -37,11 +34,6 @@ cannot be overriden.</p>
<td valign="top">the Message which gets displayed to the user during the build run.</td>
<td valign="top">the Message which gets displayed to the user during the build run.</td>
<td valign="top" align="center">No</td>
<td valign="top" align="center">No</td>
</tr>
</tr>
<tr>
<td valign="top">exitmessage</td>
<td valign="top">the exit message which gets displayed when exiting the build run.</td>
<td valign="top" align="center">No</td>
</tr>
<tr>
<tr>
<td valign="top">validargs</td>
<td valign="top">validargs</td>
<td valign="top">comma separated String containing valid input arguments. If set,
<td valign="top">comma separated String containing valid input arguments. If set,
@@ -51,15 +43,6 @@ cannot be overriden.</p>
be accepted you will need to define both arguments within validargs.</td>
be accepted you will need to define both arguments within validargs.</td>
<td valign="top" align="center">No</td>
<td valign="top" align="center">No</td>
</tr>
</tr>
<tr>
<td valign="top">exitargs</td>
<td valign="top">comma separated String containing exit arguments. If set,
input task will throw a BuildException with a customisable exit message if the
entered value matches to one of the predefined. Exitargs are compared case
sensitive. If you want 'x' and 'X' to end the build run you will need to define
both arguments within exitargs.</td>
<td valign="top" align="center">No</td>
</tr>
<tr>
<tr>
<td valign="top">addproperty</td>
<td valign="top">addproperty</td>
<td valign="top">the name of a property to be created from input. Behaviour is equal
<td valign="top">the name of a property to be created from input. Behaviour is equal
@@ -79,12 +62,17 @@ the build run until return key is pressed.</p>
/></pre>
/></pre>
<p>Will display the message "Press Return key to continue..." and pause
<p>Will display the message "Press Return key to continue..." and pause
the build run until return key is pressed.</p>
the build run until return key is pressed.</p>
<pre> <input
<pre>
<input
message="All data is going to be deleted from DB continue (y/n)?"
message="All data is going to be deleted from DB continue (y/n)?"
validargs="y,n"
validargs="y,n"
exitargs="n"
exitmessage="Build abborted by user."
/></pre>
addproperty="do.delete"
/>
<condition propert="do.abort">
<equals arg1="n" arg2="${do.delete}" />
</condition>
<fail if="do.abort">Build abborted by user.</fail>
</pre>
<p>Will display the message "All data is going to be deleted from DB continue
<p>Will display the message "All data is going to be deleted from DB continue
(y/n)?" and require 'y+retrun key' to continue build or 'n+return key'
(y/n)?" and require 'y+retrun key' to continue build or 'n+return key'
to exit build with following message "Build abborted by user.".</p>
to exit build with following message "Build abborted by user.".</p>