# tasks/system/ImportTask.php

## \ImportTask
jump to top

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

`\PhingFile $file= 'null'`

Default value `null` Details

Type
  \PhingFile

`\FileSystem $fs= ''`

Details

Type
  \FileSystem

`bool $optional= 'false'`

Default value `false` Details

Type
  bool

### Methods

`getDescription( ) : void`

`getLocation( ) : void`

`getOwningTarget( ) : void`

`getProject( ) : void`

`getRegisterSlot( ) : void`

`getRuntimeConfigurableWrapper( ) : void`

`getTaskName( ) : void`

`getTaskType( ) : void`

`init( ) : void`

Initialize task.

`log( ) : void`

`main( ) : void`

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

`maybeConfigure( ) : void`

`perform( ) : void`

`setDescription( ) : void`

`setFile( string $f ) : void`

Set the file to import.

Parameters

Name | Type | Description
--- | --- | ---
$f | string | Path to file

`setLocation( ) : void`

`setOptional( 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

`setOwningTarget( ) : void`

`setProject( ) : void`

`setRuntimeConfigurableWrapper( ) : void`

`setTaskName( ) : void`

`setTaskType( ) : void`

Documentation was generated by DocBlox 0.17.1.