The base class for all Tasks.
Use Project#createTask to register a new Task.
author | Andreas Aderhold |
---|---|
copyright | 2001,2002 THYRELL. All rights reserved |
version | $Id$ |
see | \global\Project#createTask() |
package | phing |
getDescription() : string
string
The text description of the taskgetLocation() : \Location
Used by BuildException to give detailed error messages.
\Location
The location object describing the position of this
task within the buildfile.getOwningTarget() : \Target
\Target
The target object that owns this taskgetRuntimeConfigurableWrapper() : \RuntimeConfigurable
\RuntimeConfigurable
The wrapper object used by this taskgetTaskName() : string
string
Name of this taskgetTaskType() : 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.
\BuildException |
---|
log(string $msg, integer $level)
see | \global\BuildEvent |
---|---|
see | \global\BuildListener |
string
The message to log
integer
The priority of the message
main()
This method may be called more than once, if the task is invoked more than once. For example, if target1 and target2 both depend on target3, then running phing target1 target2 will run all tasks in target3 twice.
Should throw a BuildException if someting goes wrong with the build
This is abstract here. Must be overloaded by real tasks.
maybeConfigure()
perform()
setDescription(string $desc)
string
The text describing the task
setLocation(\Location $location)
Called by the parser to set location information.
setOwningTarget(\Target $target)
setProject(\Project $project)
inherited_from | \ProjectComponent::setProject() |
---|
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
setTaskName(string $name) : string
string
string
A string representing the name of this task for logsetTaskType(string $name)
Usually this is the name of the XML tag
string
The type of this task (XML Tag)
getRegisterSlot(string $slotName)
string
$description : string
$location : \Location
$target : \Target
$taskName : string
$taskType : string
$wrapper : \RuntimeConfigurable