tasks/ext/ReplaceRegexpTask.php

Show: inherited
Table of Contents

ReplaceRegExp is a directory based task for replacing the occurrence of a given regular expression with a substitution pattern in a selected file or set of files.


Author
Jonathan Bond-Caron  
Link
http://ant.apache.org/manual/OptionalTasks/replaceregexp.html  
Package
phing.tasks.system  
Version
$Id: ReplaceRegexpTask.php 1110 2011-05-23 16:00:43Z mrook $  

\ReplaceRegexpTask

Package: phing\tasks\system

ReplaceRegExp is a directory based task for replacing the occurrence of a given regular expression with a substitution pattern in a selected file or set of files.


Parent(s)
\Task < \ProjectComponent
Author
Jonathan Bond-Caron  
Link
http://ant.apache.org/manual/OptionalTasks/replaceregexp.html  
Version
$Id: ReplaceRegexpTask.php 1110 2011-05-23 16:00:43Z mrook $  

Properties

Propertyprivate\RegularExpression  $_regexp= ''

Regular expression

Details
Type
\RegularExpression
Propertyprivate  $file= ''

Single file to process.

Details
Type
n/a
Propertyprivate  $filesets= 'array()'

Any filesets that should be processed.

Default valuearray()Details
Type
n/a

Methods

methodpubliccreateFileSet( ) : void

Nested creator, adds a set of files (nested fileset attribute).

methodpublicgetDescription( ) : void

methodpublicgetLocation( ) : void

methodpublicgetOwningTarget( ) : void

methodpublicgetProject( ) : void

methodprotectedgetRegisterSlot( ) : void

methodpublicgetRuntimeConfigurableWrapper( ) : void

methodpublicgetTaskName( ) : void

methodpublicgetTaskType( ) : void

methodpublicinit( ) : void

methodpubliclog( ) : void

methodpublicmain( ) : void

methodpublicmaybeConfigure( ) : void

methodpublicperform( ) : void

methodpublicsetByline( bool $yesNo ) : void

Match only per line

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

methodpublicsetFile( string $path ) : void

File to apply regexp on

Parameters
Name Type Description
$path string
methodpublicsetFlags( string $flags ) : void

Sets the regexp flags

Parameters
Name Type Description
$flags string
methodpublicsetLocation( ) : void

methodpublicsetMatch( string $regexp ) : void

Sets the regexp match pattern

Parameters
Name Type Description
$regexp string
methodpublicsetOwningTarget( ) : void

methodpublicsetPattern(  $regexp ) : void

Parameters
Name Type Description
$regexp
Details
See
\setMatch()  
methodpublicsetProject( ) : void

methodpublicsetReplace( string $string ) : void

Sets the replacement string

Parameters
Name Type Description
$string string
methodpublicsetRuntimeConfigurableWrapper( ) : void

methodpublicsetTaskName( ) : void

methodpublicsetTaskType( ) : void

Documentation was generated by DocBlox 0.17.1.