在我的构建文件中,我使用了jenkins-php.org中描述的phploc,但它不会忽略文件夹。
<target name="phploc" description="Measure project size using PHPLOC">
<exec executable="phploc">
<arg value="--log-csv" />
<arg value="${basedir}/build/logs/phploc.csv" />
<arg value="--exclude"/>
<arg value="${basedir}/include/library" />
<arg path="${basedir}"/>
</exec>
</target>它在项目目录的控制台上使用以下命令:
phploc --log-csv build/logs/phploc.csv --exclude include/library .但是为什么不在我的构建文件中呢?它总是在库下的整个Zend库中运行。
哦,phpcpd也是同样的问题。在控制台中它是正确的,运行它与蚂蚁不...
发布于 2012-12-20 19:57:56
我猜是在这里,但是在您的命令行运行中使用
--exclude include/library而在Ant构建文件中,您拥有
<arg value="--exclude"/>
<arg value="${basedir}/include/library" />这是有效的
--exclude ${basedir}/include/library将basedir设置为您所拥有的任何值。
也许可以试一下
<arg value="--exclude"/>
<arg value="include/library" />而不是。
https://stackoverflow.com/questions/13957833
复制相似问题