# tasks/system/AppendTask.php

## \AppendTask
jump to top

Package: phing\tasks\system

Appends text, contents of a file or set of files defined by a filelist to a destination file.

OR

OR

Parent(s)
  \Task < \ProjectComponent
Version
  $Revision: 526 $

### Properties

`$file= ''`

Explicit file to append.

Details

Type
  n/a

`$filelists= 'array()'`

Any filelists of files that should be appended.

Default value `array()`Details

Type
  n/a

`$filesets= 'array()'`

Any filesets of files that should be appended.

Default value `array()`Details

Type
  n/a

`$filterChains= 'array()'`

Any filters to be applied before append happens.

Default value `array()`Details

Type
  n/a

`$text= ''`

Text to append. (cannot be used in conjunction w/ files or filesets)

Details

Type
  n/a

`$to= ''`

Append stuff to this file.

Details

Type
  n/a

### Methods

`addText( string $txt ) : void`

Sets text to append. Supports CDATA.

Parameters

Name | Type | Description
--- | --- | ---
$txt | string |

`appendFile( $writer, $f ) : void`

Parameters

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

`appendFiles( \FileWriter $writer, array $files, \PhingFile $dir ) : void`

Append an array of files in a directory.

Parameters

Name | Type | Description
--- | --- | ---
$writer | \FileWriter | The FileWriter that is appending to target file.
$files | array | array of files to delete; can be of zero length
$dir | \PhingFile | directory to work from

`createFileList( ) : \FileList`

Supports embedded element.

Returns

Type | Description
--- | ---
\FileList |

`createFileSet( ) : \FileSet`

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

This is for when you don't care what order files get appended.

Returns

Type | Description
--- | ---
\FileSet |

`createFilterChain( ) : \FilterChain`

Creates a filterchain

Returns

Type | Description
--- | ---
\FilterChain | 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`

`setDestFile( \PhingFile $f ) : void`

The more conventional naming for method to set destination file.

Parameters

Name | Type | Description
--- | --- | ---
$f | \PhingFile |

`setFile( $f ) : void`

Sets specific file to append.

Parameters

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

`setLocation( ) : void`

`setOwningTarget( ) : void`

`setProject( ) : void`

`setRuntimeConfigurableWrapper( ) : void`

`setTaskName( ) : void`

`setTaskType( ) : void`

`setText( string $txt ) : void`

Sets text to append. (cannot be used in conjunction w/ files or filesets).

Parameters

Name | Type | Description
--- | --- | ---
$txt | string |

`setTo( $f ) : void`

Set target file to append to.

Parameters

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

Details

Deprecated
  Will be removed with final release.

Documentation was generated by DocBlox 0.17.1.