tasks/ext/XmlPropertyTask.php

Show: inherited
Table of Contents

Task for setting properties from an XML file in buildfiles.

Author
Jonathan Bond-Caron  
Link
http://ant.apache.org/manual/CoreTasks/xmlproperty.html  
Package
phing.tasks.ext  
Since
2.4.0  
Version
$Revision: 1110 $  

\XmlPropertyTask

Package: phing\tasks\ext

Task for setting properties from an XML file in buildfiles.

Parent(s)
\PropertyTask < \Task < \ProjectComponent
Author
Jonathan Bond-Caron  
Link
http://ant.apache.org/manual/CoreTasks/xmlproperty.html  
Since
2.4.0  
Version
$Revision: 1110 $  

Properties

Propertyprivate  $_collapseAttr= 'false'
Default valuefalseDetails
Type
n/a
Propertyprivate  $_delimiter= '',''
Default value','Details
Type
n/a
Propertyprivate  $_keepRoot= 'true'
Default valuetrueDetails
Type
n/a

Methods

methodprotected_addNode( \SimpleXMLElement $node, array $path, \Properties $prop ) : void

Adds an XML node

Parameters
Name Type Description
$node \SimpleXMLElement
$path array

Path to this node

$prop \Properties

Properties will be added as they are found (by reference here)

methodprotected_getProperties( string $filePath ) : \Properties

Parses an XML file and returns properties

Parameters
Name Type Description
$filePath string
Returns
Type Description
\Properties
methodprotectedaddProperties( ) : void

methodprotectedaddProperty( ) : void

methodpublicaddText( ) : void

methodpublicgetCollapseAttributes( ) : bool

Returns
Type Description
bool
methodpublicgetDelimiter( ) : string

Returns
Type Description
string
methodpublicgetDescription( ) : void

methodpublicgetEnvironment( ) : void

methodpublicgetFallback( ) : void

methodpublicgetFile( ) : void

Get the PhingFile that is being used as property source.

methodpublicgetKeepRoot( ) : bool

Returns
Type Description
bool
methodpublicgetLocation( ) : void

methodpublicgetName( ) : void

methodpublicgetOverride( ) : void

methodpublicgetOwningTarget( ) : void

methodpublicgetPrefix( ) : string

Returns
Type Description
string
Details
Since
2.0  
methodpublicgetProject( ) : void

methodpublicgetRefid( ) : void

methodprotectedgetRegisterSlot( ) : void

methodpublicgetRuntimeConfigurableWrapper( ) : void

methodpublicgetTaskName( ) : void

methodpublicgetTaskType( ) : void

methodpublicgetUserProperty( ) : void

methodpublicgetValue( ) : void

methodpublicinit( ) : void

methodprotectedloadEnvironment( ) : void

methodprotectedloadFile( \PhingFile $file ) : void

load properties from an XML file.

Parameters
Name Type Description
$file \PhingFile
methodpubliclog( ) : void

methodpublicmain( ) : void

set the property in the project to the value.

if the task was give a file or env attribute here is where it is loaded

methodpublicmaybeConfigure( ) : void

methodprotectedparsePropertyString( ) : void

methodpublicperform( ) : void

methodprotectedresolveAllProperties( ) : void

methodpublicsetCollapseAttributes( bool $yesNo ) : void

Treat attributes as nested elements.

Parameters
Name Type Description
$yesNo bool
methodpublicsetDelimiter( string $d ) : void

Delimiter for splitting multiple values.

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

methodpublicsetEnvironment( ) : void

methodpublicsetFallback( ) : void

methodpublicsetFile(  $file ) : void

Set a file to use as the source for properties.

Parameters
Name Type Description
$file
methodpublicsetKeepRoot( bool $yesNo ) : void

Keep the xml root tag as the first value in the property name

Parameters
Name Type Description
$yesNo bool
methodpublicsetLocation( ) : void

methodpublicsetName( ) : void

methodpublicsetOverride( ) : void

methodpublicsetOwningTarget( ) : void

methodpublicsetPrefix( string $prefix ) : void

Prefix to apply to properties loaded using file.

A "." is appended to the prefix if not specified.

Parameters
Name Type Description
$prefix string

prefix string

Details
Since
2.0  
methodpublicsetProject( ) : void

methodpublicsetRefid( ) : void

methodpublicsetRuntimeConfigurableWrapper( ) : void

methodpublicsetTaskName( ) : void

methodpublicsetTaskType( ) : void

methodpublicsetUserProperty( ) : void

methodpublicsetValue( ) : void

methodpublictoString( ) : void

Documentation was generated by DocBlox 0.17.1.