tasks/system/PropertyPromptTask.php
\PropertyPromptTask
Deprecated task that uses console to prompt user for property values.
This class is very slightly simpler than the InputTask, but lacks the ability to use a non-console input handler. You should, therefore, use InputTask. This class can serve as a reference, but will be removed in the future.
- Parent(s)
- \Task < \ProjectComponent
- Author
- Hans Lellelid
(Phing) - Author
- Anthony J. Young-Garner
(Ant) - Deprecated
- - in favor of the more capable InputTask
- Version
- $Revision: 1074 $
Properties
Methods

addText(
string $prompt
)
:
voidSets the prompt text that will be presented to the user.
| Name | Type | Description |
|---|---|---|
| $prompt | string |

getDefaultMessage(
)
:
voidReturns a string to be inserted in the log message indicating whether a default response was specified in the build file.

getDefaultValue(
)
:
stringReturns defaultValue specified in this task for the Property being set.
| Type | Description |
|---|---|
| string |

getPromptCharacter(
)
:
stringReturns the terminating character used to punctuate the prompt text.
| Type | Description |
|---|---|
| string |

getPromptText(
)
:
\java.lang.StringReturns text of the prompt.
| Type | Description |
|---|---|
| \java.lang.String |

getPropertyName(
)
:
stringReturns name of the Ant Project Property being set by this task.
| Type | Description |
|---|---|
| string |

isUseExistingValue(
)
:
booleanInsert the method's description here.
Creation date: (12/10/2001 8:16:16 AM)
| Type | Description |
|---|---|
| boolean |

setDefaultvalue(
string $newDefaultvalue
)
:
voidSets defaultValue for the Property being set by this task.
| Name | Type | Description |
|---|---|---|
| $newDefaultvalue | string |

setPromptCharacter(
string $newPromptcharacter
)
:
voidSets the terminating character used to punctuate the prompt text (default is "?").
| Name | Type | Description |
|---|---|---|
| $newPromptcharacter | string |

setPromptText(
string $newPrompttext
)
:
voidSets text of the prompt.
| Name | Type | Description |
|---|---|---|
| $newPrompttext | string |

setPropertyName(
\newPropertyname $newPropertyname
)
:
voidSpecifies the Phing Project Property being set by this task.
| Name | Type | Description |
|---|---|---|
| $newPropertyname | \newPropertyname | java.lang.String |