tasks/system/TaskdefTask.php

Show: inherited
Table of Contents

\TaskdefTask

Package: phing\tasks\system

Register a task for use within a buildfile.

This is for registering your own tasks -- or any non-core Task -- for use within a buildfile. If you find that you are using a particular class frequently, you may want to edit the phing/tasks/defaults.properties file so that it is included by default. You may also want to submit it (if LGPL or compatible license) to be included in Phing distribution.

  
  .
  .
  

TODO: -- possibly refactor since this is almost the same as TypeDefTask (right now these are just too simple to really justify creating an abstract class)

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

Properties

Propertyprivatestring  $classname= ''

Classname of task to register.

This can be a dot-path -- relative to a location on PHP include_path. E.g. path.to.MyClass -> path/to/MyClass.php

Details
Type
string
Propertyprivate\Path  $classpath= ''

Path to add to PHP include_path to aid in finding specified class.

Details
Type
\Path
Propertyprivate  $classpathId= ''

Refid to already defined classpath

Details
Type
n/a
Propertyprivate  $name= ''

Tag name for task that will be used in XML

Details
Type
n/a
Propertyprivatestring  $typeFile= ''

Name of file to load multiple definitions from.

Details
Type
string

Methods

methodpubliccreateClasspath( ) : \Path

Create the classpath to be used when searching for component being defined

Returns
Type Description
\Path
methodpublicgetDescription( ) : void

methodpublicgetLocation( ) : void

methodpublicgetOwningTarget( ) : void

methodpublicgetProject( ) : void

methodprotectedgetRegisterSlot( ) : void

methodpublicgetRuntimeConfigurableWrapper( ) : void

methodpublicgetTaskName( ) : void

methodpublicgetTaskType( ) : void

methodpublicinit( ) : void

methodpubliclog( ) : void

methodpublicmain( ) : void

Main entry point

methodpublicmaybeConfigure( ) : void

methodpublicperform( ) : void

methodpublicsetClassname( string $class ) : void

Sets the class name / dotpath to use.

Parameters
Name Type Description
$class string
methodpublicsetClasspath( \Path $classpath ) : void

Set the classpath to be used when searching for component being defined

Parameters
Name Type Description
$classpath \Path

A Path object containing the classpath.

methodpublicsetClasspathRef(  $r ) : void

Reference to a classpath to use when loading the files.

Parameters
Name Type Description
$r
methodpublicsetDescription( ) : void

methodpublicsetFile( string $file ) : void

Sets the file of definitionas to use to use.

Parameters
Name Type Description
$file string
methodpublicsetLocation( ) : void

methodpublicsetName( string $name ) : void

Sets the name that will be used in XML buildfile.

Parameters
Name Type Description
$name string
methodpublicsetOwningTarget( ) : void

methodpublicsetProject( ) : void

methodpublicsetRuntimeConfigurableWrapper( ) : void

methodpublicsetTaskName( ) : void

methodpublicsetTaskType( ) : void

Documentation was generated by DocBlox 0.17.1.