문제

So I have a jenkins job to update a copy of my code and generate the phpdoc for my library, this is all done with phing

When I use these line in de build.xml it generates jsut fine (but with phpdocumentor 1.4.4)

<target name="phpdoc">
        <echo msg="PHP Documentor..." />
        <phpdoc title="API Documentation"
                destdir="/var/www/corelib"
                sourcecode="yes"
                output="HTML:Smarty:PHP">
            <fileset dir="./library/Core">
                <include name="**/*.php" />
            </fileset>
        </phpdoc>
    </target>

I want to use the new version of phpdocumentor so i installed it with pear

pear install phpdoc/phpDocumentor-alpha

But when I run this command (I found this in the phing docs), jenkins prints "PHP documentor" and then directly marks the build as failed

<target name="phpdoc">
        <echo msg="PHP Documentor..." />
        <phpdoc2 title="API Documentation"  destdir="/var/www/corelib" template="responsive">
            <fileset dir="./library/Core">
                <include name="**/*.php" />
            </fileset>
        </phpdoc2>
    </target>

I have zendserver installed on this server but that can't be a problem because phpdoc 1.4.4 runs fine

So how do i solve this?

도움이 되었습니까?

해결책

Ok i found the solution, so i post it for future reference

With some help of the people on the irc channel of phpdocumentor

so this a bug with the latest build of phing in combination with the latest version of phpdocumentor. To fix this problem just revert the instalation of phpdocumentor2 to this version

phpDocumentor 2.0.0a3

This will fix the problem with phing and the documentation gets generated with no problem

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top