Modifier and Type | Class and Description |
---|---|
class |
Input.Handler
Represents an InputHandler.
|
static class |
Input.HandlerType
EnumeratedAttribute representing the built-in input handler types:
"default", "propertyfile", "greedy", "secure" (since Ant 1.8).
|
Constructor and Description |
---|
Input()
No arg constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
public void addText(String msg)
msg
- The message to be displayed.public Input.Handler createHandler()
public void execute() throws BuildException
execute
in class Task
BuildException
- on errorpublic void setAddproperty(String addproperty)
addproperty
- Name for the property to be created from inputpublic void setDefaultvalue(String defaultvalue)
defaultvalue
- Default value for the property if no input
is receivedpublic void setMessage(String message)
message
- The message to be displayed.public void setValidargs(String validargs)
validargs
- A comma separated String defining valid input args.