classes/phing/tasks/system/PhingTask.php
\PhingReference
Helper class that implements the nested <reference> element of <phing> and <phingcall>.
- Extends from
- \Reference
- package
- phing.tasks.system
Properties
Methods
\PhingTask
Task that invokes phing on another build file.
Use this task, for example, if you have nested buildfiles in your project. Unlike AntTask, PhingTask can even support filesets:
- Extends from
- \Task
- author
- Hans Lellelid
- copyright
- 2001,2002 THYRELL. All rights reserved
- package
- phing.tasks.system
- version
- $Revision: 1014 $
Properties

$filesets= 'array'
The filesets that contain the files PhingTask is to be run on.
arrayDetails- Type

$haltOnFailure= 'false'
Fail the build process when the called build fails?
falseDetails- Type
Methods

addReferences(
)
:
void- throws

copyReference(
string $oldKey, string $newKey
)
:
voidIf we cannot clone it, copy the referenced object itself and keep our fingers crossed.
| Name | Type | Description |
|---|---|---|
| $oldKey | string | |
| $newKey | string |

createFileSet(
)
:
\FileSet| Type | Description |
|---|---|
| \FileSet |

createProperty(
)
:
The property is passed as a 'user property'
- access
- public

createReference(
)
:
- access
- public

initializeProject(
)
:
Developer note: This function replaces the old methods "init", "_reinit" and "_initializeProject".
- access
- protected

overrideProperties(
)
:
void- throws

reinit(
)
:
This can happen if the same instance of this task is run twice as newProject is set to null at the end of execute (to save memory and help the GC).
Sets all properties that have been defined as nested property elements.

setBuildfile(
$s
)
:
| Name | Type | Description |
|---|---|---|
| $s |
- access
- public

setDir(
$d
)
:
Defaults to the current project's basedir, unless inheritall has been set to false, in which case it doesn't have a default value. This will override the basedir setting of the called project.
| Name | Type | Description |
|---|---|---|
| $d |
- access
- public

setHaltOnFailure(
boolean $hof
)
:
Defaults to false.
| Name | Type | Description |
|---|---|---|
| $hof | boolean | new value |

setInheritAll(
$value
)
:
Defaults to true.
| Name | Type | Description |
|---|---|---|
| $value |
- access
- public

setInheritRefs(
$value
)
:
Defaults to false.
| Name | Type | Description |
|---|---|---|
| $value |
- access
- public

setPhingfile(
$s
)
:
Defaults to "build.xml". This file is expected to be a filename relative to the dir attribute given.
| Name | Type | Description |
|---|---|---|
| $s |
- access
- public