我的项目结构如下:
我设置我的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>
感谢您的回复。
答案 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>