【问题标题】:phing with phpdoc2 doesn't runphpdoc2 的 phing 不运行
【发布时间】:2012-08-30 14:18:58
【问题描述】:

所以我有一个 jenkins 工作来更新我的代码副本并为我的库生成 phpdoc,这一切都是通过 phing 完成的

当我在 de build.xml 中使用这些行时,它会生成 jsut 很好(但使用 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>

我想使用新版本的phpdocumentor所以我用pear安装了它

pear install phpdoc/phpDocumentor-alpha

但是当我运行这个命令时(我在 phing 文档中找到了这个),jenkins 会打印“PHP documentor”,然后直接将构建标记为失败

<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>

我在这台服务器上安装了 zendserver,但这不是问题,因为 phpdoc 1.4.4 运行良好

那我该如何解决呢?

【问题讨论】:

  • 控制台日志显示什么输出?
  • 我忘记了这个问题,但我会将解决方案作为答案发布(我已将其固定在 phpdocumentor 的 irc 频道)

标签: hudson jenkins phing zend-server phpdoc


【解决方案1】:

好的,我找到了解决方案,所以我将其发布以供将来参考

在phpdocumentor的irc频道的帮助下

所以这是最新版本的 phing 与最新版本的 phpdocumentor 相结合的错误。要解决此问题,只需将 phpdocumentor2 的安装恢复到此版本

phpDocumentor 2.0.0a3

这将解决 phing 的问题,并且可以毫无问题地生成文档

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-04-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-10-26
    • 1970-01-01
    相关资源
    最近更新 更多