B.41 RunTargetTask

Phing task that runs a target without creating a new project.

Difference to <phingcall>

The main difference of <runtarget> and <phingcall> is that <phingcall> will start the phing target in a new project and will not affect the main project.<runtarget> calls a target in the same project, which could be have an effect on any existing properties. Dependency management would only be given by <phingcall>.

Table B.42: Attributes

NameTypeDescriptionDefaultRequired
targetStringThe name of the target to run.n/aYes

B.41.1 Example

<runtarget target="test" />