tasks/system/AppendTask.php

Show: inherited
Table of Contents

\AppendTask

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

Propertyprivate  $file= ''

Explicit file to append.

Details
Type
n/a
Propertyprivate  $filelists= 'array()'

Any filelists of files that should be appended.

Default valuearray()Details
Type
n/a
Propertyprivate  $filesets= 'array()'

Any filesets of files that should be appended.

Default valuearray()Details
Type
n/a
Propertyprivate  $filterChains= 'array()'

Any filters to be applied before append happens.

Default valuearray()Details
Type
n/a
Propertyprivate  $text= ''

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

Details
Type
n/a
Propertyprivate  $to= ''

Append stuff to this file.

Details
Type
n/a

Methods

methodpublicaddText( string $txt ) : void

Sets text to append. Supports CDATA.

Parameters
Name Type Description
$txt string
methodprivateappendFile(  $writer,  $f ) : void

Parameters
Name Type Description
$writer
$f
methodprivateappendFiles( \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

methodpubliccreateFileList( ) : \FileList

Supports embedded element.

Returns
Type Description
\FileList
methodpubliccreateFileSet( ) : \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
methodpubliccreateFilterChain( ) : \FilterChain

Creates a filterchain

Returns
Type Description
\FilterChain The created filterchain object
methodpublicgetDescription( ) : void

methodpublicgetLocation( ) : void

methodpublicgetOwningTarget( ) : void

methodpublicgetProject( ) : void

methodprotectedgetRegisterSlot( ) : void

methodpublicgetRuntimeConfigurableWrapper( ) : void

methodpublicgetTaskName( ) : void

methodpublicgetTaskType( ) : void

methodpublicinit( ) : void

methodpubliclog( ) : void

methodpublicmain( ) : void

Append the file(s).

methodpublicmaybeConfigure( ) : void

methodpublicperform( ) : void

methodpublicsetDescription( ) : void

methodpublicsetDestFile( \PhingFile $f ) : void

The more conventional naming for method to set destination file.

Parameters
Name Type Description
$f \PhingFile
methodpublicsetFile(  $f ) : void

Sets specific file to append.

Parameters
Name Type Description
$f
methodpublicsetLocation( ) : void

methodpublicsetOwningTarget( ) : void

methodpublicsetProject( ) : void

methodpublicsetRuntimeConfigurableWrapper( ) : void

methodpublicsetTaskName( ) : void

methodpublicsetTaskType( ) : void

methodpublicsetText( string $txt ) : void

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

Parameters
Name Type Description
$txt string
methodpublicsetTo(  $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.