Phing + PHPDocumentor: BuildException: Error including PhpDocumentor setup class file "Setup.inc.php"

StackOverflow https://stackoverflow.com/questions/20975803

  •  25-09-2022
  •  | 
  •  

Pregunta

Phing Version: 2.6.1
PHP Documentor Version: 2.2.0
PEAR Version: 1.9.4
PHP Version: 5.4.17

When I run my build file everything runs smoothly until the phpdoc execution which throws a BuildException: Error including PhpDocumentor setup class file. The error is encountered when phing tries to include "phpDocumentor/Setup.inc.php". The pear include path is present but Setup.inc.php doesn't exist anywhere, even in the latest PHPDoc repository. Is this something I should create? I can't find documentation anywhere!

¿Fue útil?

Solución

Phing's "PhpDocumentorTask" taskexpects phpDocumentor 1.x. Since you have 2.x, you need to use the "DocBloxTask" task. The latter is still named after DocBlox since it was integrated into Phing before DocBlox merged with phpDocumentor to form phpDocumentor 2.x.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top