tasks/system/AppendTask.php
\AppendTask
Package: phing\tasks\system
Returns
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

$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
Methods

addText(
string $txt
)
:
voidSets text to append. Supports CDATA.
Parameters
| Name | Type | Description |
|---|---|---|
| $txt | string |

appendFiles(
\FileWriter $writer, array $files, \PhingFile $dir
)
:
voidAppend 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 |

createFileSet(
)
:
\FileSetNested creator, adds a set of files (nested
This is for when you don't care what order files get appended.
| Type | Description |
|---|---|
| \FileSet |

createFilterChain(
)
:
\FilterChainCreates a filterchain
Returns
| Type | Description |
|---|---|
| \FilterChain | The created filterchain object |

setDestFile(
\PhingFile $f
)
:
voidThe more conventional naming for method to set destination file.
Parameters
| Name | Type | Description |
|---|---|---|
| $f | \PhingFile |

setText(
string $txt
)
:
voidSets text to append. (cannot be used in conjunction w/ files or filesets).
Parameters
| Name | Type | Description |
|---|---|---|
| $txt | string |