Ejemplo n.º 1
0
 /**
  * Task entry point
  * @see Task::main()
  */
 public function main()
 {
     if (empty($this->destDir)) {
         throw new BuildException("You must supply the 'destdir' attribute", $this->getLocation());
     }
     if (empty($this->filesets)) {
         throw new BuildException("You have not specified any files to include (<fileset>)", $this->getLocation());
     }
     $this->initializeDocBlox();
     $xml = $this->parseFiles();
     $this->log("Transforming...", Project::MSG_VERBOSE);
     $transformer = new DocBlox_Transformer();
     $transformer->setTemplatesPath(DocBlox_Core_Abstract::config()->paths->templates);
     $transformer->setTemplates(DocBlox_Core_Abstract::config()->transformations->template->name);
     $transformer->setSource($xml);
     $transformer->setTarget($this->destDir->getAbsolutePath());
     $transformer->execute();
 }