classes/phing/Target.php
public function main()
    {
        if ($this->testIfCondition() && $this->testUnlessCondition()) {
            foreach ($this->children as $o) {
                if ($o instanceof Task) {
                    // child is a task
                    $o->perform();
                } elseif ($o instanceof RuntimeConfigurable) {
                    // child is a RuntimeConfigurable
                    $o->maybeConfigure($this->project);
                }
            }
        } elseif (!$this->testIfCondition()) {
            $this->project->log(
                "Skipped target '" . $this->name . "' because property '" . $this->ifCondition . "' not set.",
                $this->getLogSkipped() ? Project::MSG_INFO : Project::MSG_VERBOSE
            );
        } else {
            $this->project->log(
                "Skipped target '" . $this->name . "' because property '" . $this->unlessCondition . "' set.",
                $this->getLogSkipped() ? Project::MSG_INFO : Project::MSG_VERBOSE
            );
        }
    }
public function main()
    {
        if ($this->testIfCondition() && $this->testUnlessCondition()) {
            foreach ($this->children as $o) {
                if ($o instanceof Task) {
                    // child is a task
                    $o->perform();
                } elseif ($o instanceof RuntimeConfigurable) {
                    // child is a RuntimeConfigurable
                    $o->maybeConfigure($this->project);
                }
            }
        } elseif (!$this->testIfCondition()) {
            $this->project->log(
                "Skipped target '" . $this->name . "' because property '" . $this->ifCondition . "' not set.",
                $this->getLogSkipped() ? Project::MSG_INFO : Project::MSG_VERBOSE
            );
        } else {
            $this->project->log(
                "Skipped target '" . $this->name . "' because property '" . $this->unlessCondition . "' set.",
                $this->getLogSkipped() ? Project::MSG_INFO : Project::MSG_VERBOSE
            );
        }
    }
public function main ( ) { if ( $ this -> testIfCondition ( ) && $ this -> testUnlessCondition ( ) ) { foreach ( $ this -> children as $ o ) { if ( $ o instanceof Task ) { // child is a task $ o -> perform ( ) ; } elseif ( $ o instanceof RuntimeConfigurable ) { // child is a RuntimeConfigurable $ o -> maybeConfigure ( $ this -> project ) ; } } } elseif ( ! $ this -> testIfCondition ( ) ) { $ this -> project -> log ( "Skipped target '" . $ this -> name . "' because property '" . $ this -> ifCondition . "' not set." , $ this -> getLogSkipped ( ) ? Project :: MSG_INFO : Project :: MSG_VERBOSE ) ; } else { $ this -> project -> log ( "Skipped target '" . $ this -> name . "' because property '" . $ this -> unlessCondition . "' set." , $ this -> getLogSkipped ( ) ? Project :: MSG_INFO : Project :: MSG_VERBOSE ) ; } }
The entry point for this class. Does some checking, then processes and
performs the tasks for this target.
The entry point for this class . Does some checking then processes and performs the tasks for this target .