classes/phing/UnknownElement.php
public function main()
    {
        if ($this->realThing === null) {
            // plain impossible to get here, maybeConfigure should
            // have thrown an exception.
            throw new BuildException("Should not be executing UnknownElement::main() -- task/type: {$this->elementName}");
        }

        if ($this->realThing instanceof Task) {
            $this->realThing->main();
        }
    }
public function main()
    {
        if ($this->realThing === null) {
            // plain impossible to get here, maybeConfigure should
            // have thrown an exception.
            throw new BuildException("Should not be executing UnknownElement::main() -- task/type: {$this->elementName}");
        }

        if ($this->realThing instanceof Task) {
            $this->realThing->main();
        }
    }
public function main ( ) { if ( $ this -> realThing === null ) { // plain impossible to get here, maybeConfigure should // have thrown an exception. throw new BuildException ( "Should not be executing UnknownElement::main() -- task/type: {$this->elementName}" ) ; } if ( $ this -> realThing instanceof Task ) { $ this -> realThing -> main ( ) ; } }
Called when the real task has been configured for the first time.

@throws BuildException if the task can not be created
Called when the real task has been configured for the first time .