public class CmsAntTaskSelectionPrompt
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.
|
构造器和说明 |
---|
CmsAntTaskSelectionPrompt()
Default constructor.
|
限定符和类型 | 方法和说明 |
---|---|
void |
execute()
Run the task.
|
java.lang.String |
getAllValues()
Returns the
separated list of all available modules. |
int |
getColumns()
Returns the columns.
|
java.lang.String |
getDefaultValue()
Returns the
separated list of pre-selected modules. |
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 |
setAllValues(java.lang.String allValues)
Sets the
separated list of all available modules. |
void |
setColumns(java.lang.String cols)
Sets the columns.
|
void |
setDefaultValue(java.lang.String defaultValue)
Sets the
separated list of pre-selected modules. |
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, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public static final java.lang.String LIST_SEPARATOR
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 something goes wrongTask.execute()
public java.lang.String getAllValues()
LIST_SEPARATOR
separated list of all available modules.public int getColumns()
public java.lang.String getDefaultValue()
LIST_SEPARATOR
separated list of pre-selected modules.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 setAllValues(java.lang.String allValues)
LIST_SEPARATOR
separated list of all available modules.allValues
- all-modules list to setpublic void setColumns(java.lang.String cols)
cols
- the columns 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 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