The base class for all Tasks.
Use \Project#createTask to register a new Task.
package |
phing |
---|
__construct()
getDescription() : string
string
the description of the current action, or null
if
no description is available.
getLocation() : \Location
getOwningTarget() : \Target
getProject() : \Project
getRegisterSlot(string $slotName) : \RegisterSlot
getRuntimeConfigurableWrapper() : \RuntimeConfigurable
getTaskName() : string
string
Name of this task
getTaskType() : string
string
The type of this task (XML Tag)
init()
Should throw a BuildException if something goes wrong with the build
This is abstract here, but may not be overloaded by subclasses.
Throws |
|
---|
log(string $msg, integer $level = \Project::MSG_INFO) : void
string
The message to be logged.
integer
The message's priority at this message should have
main()
Should throw a BuildException if someting goes wrong with the build
This is abstract here. Must be overloaded by real tasks.
maybeConfigure()
perform() : void
Throws |
|
---|
setDescription(string $desc)
string
Description of the current action.
May be null
, indicating that no description is
available.
setLocation(\Location $location)
setOverride( $override)
setOwningTarget(\Target $target)
setProject(\Project $project) : void
setProperty( $property)
setPropertyValue( $value)
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
setTaskName(string $name)
string
setTaskType(string $name)
string
The type of this task (XML Tag)
validate()
property :
override :
taskType : string
var |
---|
string
taskName : string
var |
---|
string
project : \Project
description : string
var |
---|
string