tasks/system/ImportTask.php

Show: inherited
Table of Contents

\ImportTask

Package: phing\tasks\system

Imports another build file into the current project.

Targets and properties of the imported file can be overrridden by targets and properties of the same name declared in the importing file.

The imported file will have a new synthetic property of "phing.file." declared which gives the full path to the imported file. Additionally each target in the imported file will be declared twice: once with the normal name and once with "." prepended. The "." synthetic targets allow the importing file a mechanism to call the imported files targets as dependencies or via the or task mechanisms.

Parent(s)
\Task < \ProjectComponent
Author
Bryan Davis  
Version
$Revision: 969 $  

Properties

Propertyprotected\PhingFile  $file= 'null'

Default valuenullDetails
Type
\PhingFile
Propertyprotected\FileSystem  $fs= ''

Details
Type
\FileSystem
Propertyprotectedbool  $optional= 'false'

Default valuefalseDetails
Type
bool

Methods

methodpublicgetDescription( ) : void

methodpublicgetLocation( ) : void

methodpublicgetOwningTarget( ) : void

methodpublicgetProject( ) : void

methodprotectedgetRegisterSlot( ) : void

methodpublicgetRuntimeConfigurableWrapper( ) : void

methodpublicgetTaskName( ) : void

methodpublicgetTaskType( ) : void

methodpublicinit( ) : void

Initialize task.

methodpubliclog( ) : void

methodpublicmain( ) : void

Parse a Phing build file and copy the properties, tasks, data types and targets it defines into the current project.

methodpublicmaybeConfigure( ) : void

methodpublicperform( ) : void

methodpublicsetDescription( ) : void

methodpublicsetFile( string $f ) : void

Set the file to import.

Parameters
Name Type Description
$f string

Path to file

methodpublicsetLocation( ) : void

methodpublicsetOptional( bool $opt ) : void

Is this include optional?

Parameters
Name Type Description
$opt bool

If true, do not stop the build if the file does not exist

methodpublicsetOwningTarget( ) : void

methodpublicsetProject( ) : void

methodpublicsetRuntimeConfigurableWrapper( ) : void

methodpublicsetTaskName( ) : void

methodpublicsetTaskType( ) : void

Documentation was generated by DocBlox 0.17.1.