java.lang.Cloneable
public class Input extends Task
Modifier and Type | Class | 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).
|
description, location, project
Constructor | Description |
---|---|
Input() |
Modifier and Type | Method | Description |
---|---|---|
void |
addText(java.lang.String msg) |
Set a multiline message.
|
Input.Handler |
createHandler() |
Create a nested handler element.
|
void |
execute() |
Actual method executed by ant.
|
void |
setAddproperty(java.lang.String addproperty) |
Defines the name of a property to be created from input.
|
void |
setDefaultvalue(java.lang.String defaultvalue) |
Defines the default value of the property to be created from input.
|
void |
setMessage(java.lang.String message) |
Sets the Message which gets displayed to the user during the build run.
|
void |
setValidargs(java.lang.String validargs) |
Defines valid input parameters as comma separated strings.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void setValidargs(java.lang.String validargs)
validargs
- A comma separated String defining valid input args.public void setAddproperty(java.lang.String addproperty)
addproperty
- Name for the property to be created from inputpublic void setMessage(java.lang.String message)
message
- The message to be displayed.public void setDefaultvalue(java.lang.String defaultvalue)
defaultvalue
- Default value for the property if no input
is receivedpublic void addText(java.lang.String msg)
msg
- The message to be displayed.public void execute() throws BuildException
execute
in class Task
BuildException
- on errorpublic Input.Handler createHandler()