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
stringThe text description of the taskgetLocation() : \Location
Used by BuildException to give detailed error messages.
\LocationThe location object describing the position of this
task within the buildfile.getOwningTarget() : \Target
\TargetThe target object that owns this taskgetRuntimeConfigurableWrapper() : \RuntimeConfigurable
\RuntimeConfigurableThe wrapper object used by this taskgetTaskName() : string
stringName of this taskgetTaskType() : string
stringThe 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 | \BuildEvent |
|---|---|
| see | \BuildListener |
stringThe message to log
integerThe 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)
stringThe 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
stringA string representing the name of this task for logsetTaskType(string $name)
Usually this is the name of the XML tag
stringThe type of this task (XML Tag)
getRegisterSlot(string $slotName)
string
$description : string
$location : \Location
$target : \Target
$taskName : string
$taskType : string
$wrapper : \RuntimeConfigurable