|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.Input
public class Input
Reads an input line from the console.
| Nested Class Summary | |
|---|---|
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). |
| Field Summary |
|---|
| Fields inherited from class org.apache.tools.ant.Task |
|---|
target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
description, location, project |
| Constructor Summary | |
|---|---|
Input()
No arg constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.tools.ant.Task |
|---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
|---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Input()
| Method Detail |
|---|
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 TaskBuildException - on errorpublic Input.Handler createHandler()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||