B.28 PropertyPromptTask
Prev | Appendix B. Core tasks | Next

## B.28 PropertyPromptTask

`PropertyPromptTask` is a simple task to read in user input into a property. If you need something more advanced, see the Section B.20, “InputTask ”.

Table B.29: Attributes

Name | Type | Description | Default | Required
--- | --- | --- | --- | ---
`propertyName` | `String` | The name of the Property to set. | n/a | Yes
`promptText` | `String` | The text to use for the prompt. | n/a | Yes
`promptCharacter` | `String` | The character to use after the prompt. | ? | No
`defaultValue` | `String` | A default value to use (if user just hits enter). | n/a | No
`useExistingValue` | `String` | Whether existing property should be used if available. (This will result in user only being prompted if the propertyName property is not already set.) | `false` | No

### B.28.1 Examples

    <propertyprompt propertyName="someprop" defaultValue="/var/www"
            promptText="Enter your web root" />
    <echo>${someprop}</echo>

Prev | Up | Next
B.27 PropertyTask | Home | B.29 ReflexiveTask