classes/phing/tasks/system/AppendTask.php
\AppendTask
Appends text, contents of a file or set of files defined by a filelist to a destination file.
OR
OR
- Extends from
- \Task
- author
- Andreas Aderhold
- copyright
- 2001,2002 THYRELL. All rights reserved
- package
- phing.tasks.system
- version
- $Revision: 526 $
Properties

$filterChains= 'array'
Any filters to be applied before append happens.
arrayDetails- Type
Methods

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

appendFiles(
\FileWriter $writer, array $files, \PhingFile $dir
)
:
Append an array of files in a directory.
| 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 attribute).
This is for when you don't care what order files get appended.
| Type | Description |
|---|---|
| \FileSet |

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

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