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

Propertyprivate  $file= ''

Explicit file to append.

Details
Type
Propertyprivate  $filelists= 'array'

Any filelists of files that should be appended.

Default valuearrayDetails
Type
Propertyprivate  $filesets= 'array'

Any filesets of files that should be appended.

Default valuearrayDetails
Type
Propertyprivate  $filterChains= 'array'

Any filters to be applied before append happens.

Default valuearrayDetails
Type
Propertyprivate  $text= ''

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

Details
Type
Propertyprivate  $to= ''

Append stuff to this file.

Details
Type

Methods

methodpublic  addText( string $txt ) :
Sets text to append. Supports CDATA.
Parameters
Name Type Description
$txt string
methodprivate  appendFile(  $writer,  $f ) :
Parameters
Name Type Description
$writer
$f
methodprivate  appendFiles( \FileWriter $writer, array $files, \PhingFile $dir ) :
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
methodpublic  createFileList( ) : \FileList
Supports embedded element.
Returns
Type Description
\FileList
methodpublic  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
methodpublic  createFilterChain( ) : \FilterChain
Creates a filterchain
Returns
Type Description
\FilterChain
methodpublic  main( ) :
Append the file(s).
methodpublic  setDestFile( \PhingFile $f ) :
The more conventional naming for method to set destination file.
Parameters
Name Type Description
$f \PhingFile
methodpublic  setFile(  $f ) :
Sets specific file to append.
Parameters
Name Type Description
$f
methodpublic  setText( string $txt ) :
Sets text to append. (cannot be used in conjunction w/ files or filesets).
Parameters
Name Type Description
$txt string
methodpublic  setTo(  $f ) :
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.13.1.