コード例 #1
0
 /**
  * Adds a new configurator to the parsing stack.
  *
  * @param      ProjectConfigurator The configurator.
  *
  * @author     Noah Fontes <*****@*****.**>
  * @since      1.0.4
  */
 public function startConfigure($configurator)
 {
     parent::startConfigure($configurator);
     $this->getProject()->fireConfigureStarted($configurator);
 }
コード例 #2
0
 /**
  * @param PhingXMLContext $ctx
  * @throws ExpatParseException
  */
 protected function _parse(PhingXMLContext $ctx)
 {
     // push action onto global stack
     $ctx->startConfigure($this);
     $reader = new BufferedReader(new FileReader($this->buildFile));
     $parser = new ExpatParser($reader);
     $parser->parserSetOption(XML_OPTION_CASE_FOLDING, 0);
     $parser->setHandler(new RootHandler($parser, $this, $ctx));
     $this->project->log("parsing buildfile " . $this->buildFile->getName(), Project::MSG_VERBOSE);
     $parser->parse();
     $reader->close();
     // mark parse phase as completed
     $this->isParsing = false;
     // execute delayed tasks
     $this->parseEndTarget->main();
     // pop this action from the global stack
     $ctx->endConfigure();
 }