|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.ProjectComponent | +--org.apache.tools.ant.Task | +--org.apache.tools.ant.taskdefs.Input
Reads an input line from the console.
Field Summary |
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
Input()
No arg constructor. |
Method Summary | |
void |
addText(java.lang.String msg)
Set a multiline message. |
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 |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
Methods inherited from class java.lang.Object |
clone, 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 Task
BuildException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |