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

Propertyprivatestring  $defaultValue= ''

The default value to use if no input is entered.

Details
Type
string
Propertyprivatestring  $promptCharacter= ''

The character to put after the text.

Details
Type
string
Propertyprivatestring  $promptText= ''

The text to use for the prompt.

Details
Type
string
Propertyprivatestring  $propertyName= ''

The property name to set with the output.

Details
Type
string
Propertyprivatestring  $proposedValue= ''

The entered value.

Details
Type
string
Propertyprivate  $useExistingValue= ''

Details
Type

Methods

methodpublic  addText( string $prompt ) : void
Sets the prompt text that will be presented to the user.
Parameters
Name Type Description
$prompt string
methodprivate  getDefaultMessage( ) :
Returns a string to be inserted in the log message indicating whether a default response was specified in the build file.
methodpublic  getDefaultValue( ) : string
Returns defaultValue specified in this task for the Property being set.
Returns
Type Description
string
methodpublic  getPromptCharacter( ) : string
Returns the terminating character used to punctuate the prompt text.
Returns
Type Description
string
methodpublic  getPromptText( ) : \java.lang.String
Returns text of the prompt.
Returns
Type Description
\java.lang.String
methodpublic  getPropertyName( ) : string
Returns name of the Ant Project Property being set by this task.
Returns
Type Description
string
methodpublic  init( ) :
Initializes this task.
methodpublic  isUseExistingValue( ) : boolean
Insert the method's description here.

Creation date: (12/10/2001 8:16:16 AM)

Returns
Type Description
boolean
methodpublic  main( ) :
Run the PropertyPrompt task.
Details
throws
methodpublic  setDefaultvalue( string $newDefaultvalue ) :
Sets defaultValue for the Property being set by this task.
Parameters
Name Type Description
$newDefaultvalue string
methodpublic  setPromptCharacter( string $newPromptcharacter ) :
Sets the terminating character used to punctuate the prompt text (default is "?").
Parameters
Name Type Description
$newPromptcharacter string
methodpublic  setPromptText( string $newPrompttext ) :
Sets text of the prompt.
Parameters
Name Type Description
$newPrompttext string
methodpublic  setPropertyName( \newPropertyname $newPropertyname ) :
Specifies the Phing Project Property being set by this task.
Parameters
Name Type Description
$newPropertyname \newPropertyname java.lang.String
methodpublic  setUseExistingValue( boolean $newUseExistingValue ) :
Parameters
Name Type Description
$newUseExistingValue boolean
Documentation was generated by DocBlox 0.13.1.