tasks/system/PropertyPromptTask.php

Show: inherited
Table of Contents

\PropertyPromptTask

Package: phing\tasks\system

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

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
n/a

Methods

methodpublicaddText( string $prompt ) : void

Sets the prompt text that will be presented to the user.

Parameters
Name Type Description
$prompt string
methodprivategetDefaultMessage( ) : void

Returns a string to be inserted in the log message indicating whether a default response was specified in the build file.

methodpublicgetDefaultValue( ) : string

Returns defaultValue specified in this task for the Property being set.

Returns
Type Description
string
methodpublicgetDescription( ) : void

methodpublicgetLocation( ) : void

methodpublicgetOwningTarget( ) : void

methodpublicgetProject( ) : void

methodpublicgetPromptCharacter( ) : string

Returns the terminating character used to punctuate the prompt text.

Returns
Type Description
string
methodpublicgetPromptText( ) : \java.lang.String

Returns text of the prompt.

Returns
Type Description
\java.lang.String
methodpublicgetPropertyName( ) : string

Returns name of the Ant Project Property being set by this task.

Returns
Type Description
string
methodprotectedgetRegisterSlot( ) : void

methodpublicgetRuntimeConfigurableWrapper( ) : void

methodpublicgetTaskName( ) : void

methodpublicgetTaskType( ) : void

methodpublicinit( ) : void

Initializes this task.

methodpublicisUseExistingValue( ) : boolean

Insert the method's description here.

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

Returns
Type Description
boolean
methodpubliclog( ) : void

methodpublicmain( ) : void

Run the PropertyPrompt task.

Throws
Exception Description
\BuildException
methodpublicmaybeConfigure( ) : void

methodpublicperform( ) : void

methodpublicsetDefaultvalue( string $newDefaultvalue ) : void

Sets defaultValue for the Property being set by this task.

Parameters
Name Type Description
$newDefaultvalue string
methodpublicsetDescription( ) : void

methodpublicsetLocation( ) : void

methodpublicsetOwningTarget( ) : void

methodpublicsetProject( ) : void

methodpublicsetPromptCharacter( string $newPromptcharacter ) : void

Sets the terminating character used to punctuate the prompt text (default is "?").

Parameters
Name Type Description
$newPromptcharacter string
methodpublicsetPromptText( string $newPrompttext ) : void

Sets text of the prompt.

Parameters
Name Type Description
$newPrompttext string
methodpublicsetPropertyName( \newPropertyname $newPropertyname ) : void

Specifies the Phing Project Property being set by this task.

Parameters
Name Type Description
$newPropertyname \newPropertyname

java.lang.String

methodpublicsetRuntimeConfigurableWrapper( ) : void

methodpublicsetTaskName( ) : void

methodpublicsetTaskType( ) : void

methodpublicsetUseExistingValue( boolean $newUseExistingValue ) : void

Parameters
Name Type Description
$newUseExistingValue boolean
Documentation was generated by DocBlox 0.17.1.