tasks/system/PhingTask.php

Show: inherited
Table of Contents

\PhingReference

Package: phing\tasks\system

Helper class that implements the nested <reference> element of <phing> and <phingcall>.

Parent(s)
\Reference

Properties

Propertyprivate  $targetid= 'null'
Default valuenullDetails
Type
n/a

Methods

methodpublic__construct( ) : void

methodpublicgetRefId( ) : void

methodpublicgetReferencedObject( ) : void

methodpublicgetToRefid( ) : \the

Get the id under which this reference will be stored in the new project

Returns
Type Description
\the id of the reference in the new project.
methodpublicsetRefId( ) : void

methodpublicsetToRefid( \targetid $targetid ) : void

Set the id that this reference to be stored under in the new project.

Parameters
Name Type Description
$targetid \targetid

the id under which this reference will be passed to the new project

\PhingTask

Package: phing\tasks\system

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:

  
   
      
     
   
  
Parent(s)
\Task < \ProjectComponent
Author
Hans Lellelid  
Version
$Revision: 1382 $  

Properties

Propertyprivate  $dir= ''

the basedir where is executed the build file

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

The filesets that contain the files PhingTask is to be run on.

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

Fail the build process when the called build fails?

Default valuefalseDetails
Type
n/a
Propertyprivate  $inheritAll= 'true'

should we inherit properties from the parent ?

Default valuetrueDetails
Type
n/a
Propertyprivate  $inheritRefs= 'false'

should we inherit references from the parent ?

Default valuefalseDetails
Type
n/a
Propertyprivate  $newProject= ''

the temporary project created to run the build file

Details
Type
n/a
Propertyprotected  $newTarget= ''

the target to call if any

Details
Type
n/a
Propertyprivate  $phingFile= ''

build.xml (can be absolute) in this case dir will be ignored

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

the properties to pass to the new project

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

the references to pass to the new project

Default valuearray()Details
Type
n/a

Methods

methodprivateaddReferences( ) : void

Add the references explicitly defined as nested elements to the new project. Also copy over all references that don't override existing references in the new project if inheritrefs has been requested.

Throws
Exception Description
\BuildException
methodprivatecopyReference( string $oldKey, string $newKey ) : void

Try to clone and reconfigure the object referenced by oldkey in the parent project and add it to the new project with the key newkey.

If we cannot clone it, copy the referenced object itself and keep our fingers crossed.

Parameters
Name Type Description
$oldKey string
$newKey string
methodpubliccreateFileSet( ) : \FileSet

Support for filesets; This method returns a reference to an instance of a FileSet object.

Returns
Type Description
\FileSet
methodpubliccreateProperty( ) : void

Property to pass to the new project.

The property is passed as a 'user property'

Details
Access
public  
methodpubliccreateReference( ) : void

Reference element identifying a data type to carry over to the new project.

Details
Access
public  
methodpublicgetDescription( ) : void

methodpublicgetLocation( ) : void

methodpublicgetOwningTarget( ) : void

methodpublicgetProject( ) : void

methodprotectedgetRegisterSlot( ) : void

methodpublicgetRuntimeConfigurableWrapper( ) : void

methodpublicgetTaskName( ) : void

methodpublicgetTaskType( ) : void

methodpublicinit( ) : void

Creates a Project instance for the project to call.

methodprivateinitializeProject( ) : void

Configure the Project, i.e. make intance, attach build listeners (copy from father project), add Task and Datatype definitions, copy properties and references from old project if these options are set via the attributes of the XML tag.

Developer note: This function replaces the old methods "init", "_reinit" and "_initializeProject".

Details
Access
protected  
methodpubliclog( ) : void

methodpublicmain( ) : void

Main entry point for the task.

methodpublicmaybeConfigure( ) : void

methodprivateoverrideProperties( ) : void

Override the properties in the new project with the one explicitly defined as nested elements here.

Throws
Exception Description
\BuildException
methodpublicperform( ) : void

methodprivateprocessFile( ) : void

Execute phing file.

methodprivatereinit( ) : void

Called in execute or createProperty if newProject is null.

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.

methodpublicsetBuildfile(  $s ) : void

Alias function for setPhingfile

Parameters
Name Type Description
$s
Details
Access
public  
methodpublicsetDescription( ) : void

methodpublicsetDir(  $d ) : void

The directory to use as a base directory for the new phing project.

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.

Parameters
Name Type Description
$d
Details
Access
public  
methodpublicsetHaltOnFailure( boolean $hof ) : void

If true, abort the build process if there is a problem with or in the target build file.

Defaults to false.

Parameters
Name Type Description
$hof boolean

new value

methodpublicsetInheritAll(  $value ) : void

If true, pass all properties to the new phing project.

Defaults to true.

Parameters
Name Type Description
$value
Details
Access
public  
methodpublicsetInheritRefs(  $value ) : void

If true, pass all references to the new phing project.

Defaults to false.

Parameters
Name Type Description
$value
Details
Access
public  
methodpublicsetLocation( ) : void

methodpublicsetOwningTarget( ) : void

methodpublicsetPhingfile(  $s ) : void

The build file to use.

Defaults to "build.xml". This file is expected to be a filename relative to the dir attribute given.

Parameters
Name Type Description
$s
Details
Access
public  
methodpublicsetProject( ) : void

methodpublicsetRuntimeConfigurableWrapper( ) : void

methodpublicsetTarget(  $s ) : void

The target of the new Phing project to execute.

Defaults to the new project's default target.

Parameters
Name Type Description
$s
Details
Access
public  
methodpublicsetTaskName( ) : void

methodpublicsetTaskType( ) : void

Documentation was generated by DocBlox 0.17.1.