classes/phing/Project.php
public function addOrReplaceTarget($targetName, &$target)
    {
        $this->log("  +Target: $targetName", Project::MSG_DEBUG);
        $target->setProject($this);
        $this->targets[$targetName] = $target;

        $ctx = $this->getReference(ProjectConfigurator::PARSING_CONTEXT_REFERENCE);
        $current = $ctx->getCurrentTargets();
        $current[$targetName] = $target;
    }
public function addOrReplaceTarget($targetName, &$target)
    {
        $this->log("  +Target: $targetName", Project::MSG_DEBUG);
        $target->setProject($this);
        $this->targets[$targetName] = $target;

        $ctx = $this->getReference(ProjectConfigurator::PARSING_CONTEXT_REFERENCE);
        $current = $ctx->getCurrentTargets();
        $current[$targetName] = $target;
    }
public function addOrReplaceTarget ( $ targetName , & $ target ) { $ this -> log ( "  +Target: $targetName" , Project :: MSG_DEBUG ) ; $ target -> setProject ( $ this ) ; $ this -> targets [ $ targetName ] = $ target ; $ ctx = $ this -> getReference ( ProjectConfigurator :: PARSING_CONTEXT_REFERENCE ) ; $ current = $ ctx -> getCurrentTargets ( ) ; $ current [ $ targetName ] = $ target ; }
Adds or replaces a target in the project

@param string $targetName
@param Target $target
Adds or replaces a target in the project