public class CmsAntTaskSelectionTreePrompt
extends org.apache.tools.ant.Task
Task that prompts user for selection to allow interactive builds.
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
LIST_SEPARATOR
Options list separator constant.
|
构造器和说明 |
---|
CmsAntTaskSelectionTreePrompt()
Default constructor.
|
限定符和类型 | 方法和说明 |
---|---|
void |
execute()
Run the task.
|
java.lang.String |
getAllValues()
Returns the
separated list of all available modules. |
java.lang.String |
getDefaultValue()
Returns the
separated list of pre-selected modules. |
int |
getExpansionLevels()
Returns the expansionLevels.
|
java.lang.String |
getPrompt()
Returns the prompt.
|
java.lang.String |
getProperty()
Returns the property to store the user selection.
|
java.lang.String |
getTitle()
Returns the title.
|
void |
init()
Initializes this task.
|
boolean |
isSingleSelection()
Returns the Single Selection flag.
|
void |
log(java.lang.String arg0)
Overridden to allow debugging.
|
void |
log(java.lang.String arg0,
int arg1)
Overridden to allow debugging.
|
static void |
main(java.lang.String[] args)
For debuggin only.
|
void |
setAllValues(java.lang.String allValues)
Sets the
separated list of all available modules. |
void |
setDefaultValue(java.lang.String defaultValue)
Sets the
separated list of pre-selected modules. |
void |
setExpansionLevels(int expansionLevels)
Sets the expansionLevels.
|
void |
setPrompt(java.lang.String prompt)
Sets the prompt.
|
void |
setProperty(java.lang.String property)
Sets the property for storing the selected value.
|
void |
setSingleSelection(boolean singleSelection)
Sets the single Selection flag.
|
void |
setTitle(java.lang.String title)
Sets the title.
|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public static final java.lang.String LIST_SEPARATOR
public static void main(java.lang.String[] args)
args
- cmdline args.public void execute() throws org.apache.tools.ant.BuildException
Sets the given property to __ABORT__
if canceled, or to a list of selected
modules if not.
execute
在类中 org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
- in case an error occursTask.execute()
public java.lang.String getAllValues()
LIST_SEPARATOR
separated list of all available modules.
public java.lang.String getDefaultValue()
LIST_SEPARATOR
separated list of pre-selected modules.
public int getExpansionLevels()
public java.lang.String getPrompt()
public java.lang.String getProperty()
public java.lang.String getTitle()
public void init()
init
在类中 org.apache.tools.ant.Task
public boolean isSingleSelection()
public void log(java.lang.String arg0)
log
在类中 org.apache.tools.ant.Task
Task.log(java.lang.String)
public void log(java.lang.String arg0, int arg1)
log
在类中 org.apache.tools.ant.Task
Task.log(java.lang.String, int)
public void setAllValues(java.lang.String allValues)
LIST_SEPARATOR
separated list of all available modules.
allValues
- all-modules list to setpublic void setDefaultValue(java.lang.String defaultValue)
LIST_SEPARATOR
separated list of pre-selected modules.
defaultValue
- the pre-selected module list to setpublic void setExpansionLevels(int expansionLevels)
expansionLevels
- the expansionLevels to setpublic void setPrompt(java.lang.String prompt)
prompt
- the prompt to setpublic void setProperty(java.lang.String property)
property
- The property to set.public void setSingleSelection(boolean singleSelection)
singleSelection
- the single Selection flag to setpublic void setTitle(java.lang.String title)
title
- the title to set