tasks/system/ReflexiveTask.php

Show: inherited
Table of Contents

This task is for using filter chains to make changes to files and overwrite the original files.

This task was created to serve the need for "cleanup" tasks -- e.g. a ReplaceRegexp task or strip task being used to modify files and then overwrite the modified files. In many (most?) cases you probably should just use a copy task to preserve the original source files, but this task supports situations where there is no src vs. build directory, and modifying source files is actually desired.

   
       
           
       
       
           
               
           
       
   
Author
Hans Lellelid  
Package
phing.tasks.system  
Version
$Revision: 552 $  

\ReflexiveTask

Package: phing\tasks\system

This task is for using filter chains to make changes to files and overwrite the original files.

This task was created to serve the need for "cleanup" tasks -- e.g. a ReplaceRegexp task or strip task being used to modify files and then overwrite the modified files. In many (most?) cases you probably should just use a copy task to preserve the original source files, but this task supports situations where there is no src vs. build directory, and modifying source files is actually desired.

   
       
           
       
       
           
               
           
       
   
Parent(s)
\Task < \ProjectComponent
Author
Hans Lellelid  
Version
$Revision: 552 $  

Properties

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
Propertyprivate  $filterChains= 'array()'

Any filters to be applied before append happens.

Default valuearray()Details
Type
n/a

Methods

methodpubliccreateFileSet( ) : void

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

methodpubliccreateFilterChain( ) : object

Creates a filterchain

Returns
Type Description
object The created filterchain object
methodpublicgetDescription( ) : void

methodpublicgetLocation( ) : void

methodpublicgetOwningTarget( ) : void

methodpublicgetProject( ) : void

methodprotectedgetRegisterSlot( ) : void

methodpublicgetRuntimeConfigurableWrapper( ) : void

methodpublicgetTaskName( ) : void

methodpublicgetTaskType( ) : void

methodpublicinit( ) : void

methodpubliclog( ) : void

methodpublicmain( ) : void

Append the file(s).

methodpublicmaybeConfigure( ) : void

methodpublicperform( ) : void

methodpublicsetDescription( ) : void

methodpublicsetFile(  $f ) : void

Alias for setFrom()

Parameters
Name Type Description
$f
methodpublicsetLocation( ) : void

methodpublicsetOwningTarget( ) : void

methodpublicsetProject( ) : void

methodpublicsetRuntimeConfigurableWrapper( ) : void

methodpublicsetTaskName( ) : void

methodpublicsetTaskType( ) : void

Documentation was generated by DocBlox 0.17.1.