# tasks/system/ReflexiveTask.php

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
jump to top

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

`$file= ''`

Single file to process.

Details

Type
  n/a

`$filesets= 'array()'`

Any filesets that should be processed.

Default value `array()`Details

Type
  n/a

`$filterChains= 'array()'`

Any filters to be applied before append happens.

Default value `array()`Details

Type
  n/a

### Methods

`createFileSet( ) : void`

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

`createFilterChain( ) : object`

Creates a filterchain

Returns

Type | Description
--- | ---
object | The created filterchain object

`getDescription( ) : void`

`getLocation( ) : void`

`getOwningTarget( ) : void`

`getProject( ) : void`

`getRegisterSlot( ) : void`

`getRuntimeConfigurableWrapper( ) : void`

`getTaskName( ) : void`

`getTaskType( ) : void`

`init( ) : void`

`log( ) : void`

`main( ) : void`

Append the file(s).

`maybeConfigure( ) : void`

`perform( ) : void`

`setDescription( ) : void`

`setFile( $f ) : void`

Alias for setFrom()

Parameters

Name | Type | Description
--- | --- | ---
$f |  |

`setLocation( ) : void`

`setOwningTarget( ) : void`

`setProject( ) : void`

`setRuntimeConfigurableWrapper( ) : void`

`setTaskName( ) : void`

`setTaskType( ) : void`

Documentation was generated by DocBlox 0.17.1.