2011-05-24 75 views
1

我的项目结构,如:的多个目录PHP_CodeBrowser目录设置

  • 应用
  • 测试
  • 文档
    • Zend公司
    • My_Lib

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

是否有可能和任何线索如何做到这一点?

我的PHP_CodeBrowser蚂蚁任务。

<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

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

非常感谢你,这就是它。 – Vebloud 2011-05-25 09:16:57