classes/phing/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.
- Extends from
- \Task
- author
- Hans Lellelid
(Phing) - author
- Anthony J. Young-Garner
(Ant) - copyright
- 2001,2002 THYRELL. All rights reserved
- deprecated
- - in favor of the more capable InputTask
- package
- phing.tasks.system
- 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(
)
:
Returns 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
)
:
Sets defaultValue for the Property
being set by this task.
| Name | Type | Description |
|---|---|---|
| $newDefaultvalue | string |

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

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

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