PHP_CodeBrowser目录设置多个目录

时间:2011-05-24 16:43:06

标签: ant command-line-interface jenkins php-codebrowser

我的项目结构如下:

  • 应用
  • 测试
  • 文档
    • 的Zend
    • My_Lib

我设置我的JenkinsCLI以进行PHP_Code_Sniffer分析,依此类推应用程序和库/ My_Lib。现在我需要设置PHP_CodeBrowser来浏览applivation和library / My_Lib。但只有这两个我不想设置PHP_CodeBrowser来浏览项目中的所有文件。

有可能并且有任何线索如何做到这一点?

我的PHP_CodeBrowser ant任务。

<target name="phpcb"
     description="Aggregate tool output with PHP_CodeBrowser">
    <exec executable="phpcb">
        <arg line="--log    ${basedir}/build/logs
          --source ${source}
          --output ${basedir}/build/code-browser" />
    </exec>
</target>

感谢您的回复。

1 个答案:

答案 0 :(得分:1)

来自phpcb --help

-s source, --source=source      Path to the project source
                                code. . . .
                                Can be given multiple times

所以试试

<target name="phpcb"
     description="Aggregate tool output with PHP_CodeBrowser">
    <exec executable="phpcb">
        <arg line="--log    ${basedir}/build/logs
          --source ${source}/application
          --source ${source}/library/My_Lib
          --output ${basedir}/build/code-browser" />
    </exec>
</target>