org.apache.tools.ant.taskdefs
public class Input extends Task
Since: Ant 1.5
UNKNOWN: category="control"
| Nested Class Summary | |
|---|---|
| class | Input.Handler
Represents an InputHandler. |
| static class | Input.HandlerType
EnumeratedAttribute representing the built-in input handler types:
"default", "propertyfile", "greedy". |
| Constructor Summary | |
|---|---|
| Input()
No arg constructor. | |
| Method Summary | |
|---|---|
| void | addText(String msg)
Set a multiline message. |
| Input.Handler | createHandler()
Create a nested handler element. |
| void | execute()
Actual method executed by ant. |
| void | setAddproperty(String addproperty)
Defines the name of a property to be created from input. |
| void | setDefaultvalue(String defaultvalue)
Defines the default value of the property to be created from input.
|
| void | setMessage(String message)
Sets the Message which gets displayed to the user during the build run. |
| void | setValidargs(String validargs)
Defines valid input parameters as comma separated strings. |
Parameters: msg The message to be displayed.
Returns: a Handler for this Input task.
Throws: BuildException on error
Parameters: addproperty Name for the property to be created from input
Parameters: defaultvalue Default value for the property if no input is received
Parameters: message The message to be displayed.
Parameters: validargs A comma separated String defining valid input args.