/**
  *  hand off the work to the phing task of ours, after setting it up
  *
  * @throws BuildException on validation failure or if the target didn't
  *                        execute
  */
 public function main()
 {
     $this->log("Running PhingCallTask for target '" . $this->subTarget . "'", Project::MSG_DEBUG);
     if ($this->callee === null) {
         $this->init();
     }
     if ($this->subTarget === null) {
         throw new BuildException("Attribute target is required.", $this->getLocation());
     }
     $this->callee->setPhingfile($this->project->getProperty("phing.file"));
     $this->callee->setTarget($this->subTarget);
     $this->callee->setInheritAll($this->inheritAll);
     $this->callee->setInheritRefs($this->inheritRefs);
     $this->callee->main();
 }
Esempio n. 2
0
 /**
  *  hand off the work to the phing task of ours, after setting it up
  * @throws BuildException on validation failure or if the target didn't
  *                        execute
  */
 public function main()
 {
     if ($this->getOwningTarget()->getName() === "") {
         $this->log("Cowardly refusing to call target '{$this->subTarget}' from the root", Project::MSG_WARN);
         return;
     }
     $this->log("Running PhingCallTask for target '" . $this->subTarget . "'", Project::MSG_DEBUG);
     if ($this->callee === null) {
         $this->init();
     }
     if ($this->subTarget === null) {
         throw new BuildException("Attribute target is required.", $this->getLocation());
     }
     $this->callee->setPhingfile($this->project->getProperty("phing.file"));
     $this->callee->setTarget($this->subTarget);
     $this->callee->setInheritAll($this->inheritAll);
     $this->callee->setInheritRefs($this->inheritRefs);
     $this->callee->main();
 }