# tasks/system/AdhocTaskdefTask.php

A class for creating adhoc tasks in build file.

<![CDATA[

           class FooTest extends Task {
               private $bar;

               function setBar($bar) {
                   $this->bar = $bar;
               }

               function main() {
                   $this->log("In FooTest: " . $this->bar);
               }
           }

       ]]></adhoc-task>

     <foo bar="B.L.I.N.G"/>

Author
  Hans Lellelid
Package
  phing.tasks.system
Version
  $Revision: 1015 $

## \AdhocTaskdefTask
jump to top

Package: phing\tasks\system

A class for creating adhoc tasks in build file.

<![CDATA[

           class FooTest extends Task {
               private $bar;

               function setBar($bar) {
                   $this->bar = $bar;
               }

               function main() {
                   $this->log("In FooTest: " . $this->bar);
               }
           }

       ]]></adhoc-task>

     <foo bar="B.L.I.N.G"/>

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

### Properties

`$name= ''`

The tag that refers to this task.

Details

Type
  n/a

### Methods

`addText( ) : void`

`execute( ) : void`

`getDescription( ) : void`

`getLocation( ) : void`

`getNewClasses( ) : void`

`getOwningTarget( ) : void`

`getProject( ) : void`

`getRegisterSlot( ) : void`

`getRuntimeConfigurableWrapper( ) : void`

`getTaskName( ) : void`

`getTaskType( ) : void`

`init( ) : void`

`log( ) : void`

`main( ) : void`

Main entry point

`maybeConfigure( ) : void`

`perform( ) : void`

`setDescription( ) : void`

`setLocation( ) : void`

`setName( string $name ) : void`

Set the tag that will represent this adhoc task/type.

Parameters

Name | Type | Description
--- | --- | ---
$name | string |

`setOwningTarget( ) : void`

`setProject( ) : void`

`setRuntimeConfigurableWrapper( ) : void`

`setTaskName( ) : void`

`setTaskType( ) : void`

Documentation was generated by DocBlox 0.17.1.