忽略库项目,在命令行上的Android皮棉 [英] Ignoring library project with Android lint on the command line
问题描述
我使用与詹金斯的Android棉绒和需要忽略库项目(具体操作栏福尔摩斯),我的团队不会修改,使我们可以从Android的皮棉有用的结果。目前,我正在启动命令行皮棉并保存结果,可以然后詹金斯读取XML文件。我似乎无法做的虽然是忽略库项目。在Eclipse中,你可以明确地禁用扫描库项目,但我无法弄清楚是否有相应的命令行参数这一点。
I am using Android lint with Jenkins and need to ignore library projects (specifically Action Bar Sherlock) that my team does not modify so that we can get useful results from Android lint. At the moment I am launching lint from the command line and saving the results to an XML file that can then be read by Jenkins. What I can't seem to do though is ignore library projects. In Eclipse you can explicitly disable scanning of library projects but I can't figure out if there is a corresponding command line argument for this.
我已经提出了一些不同的变通针对此问题,但他们都不是理想的。我使用的皮棉22.0.5。谢谢你。
I have come up with a few different work-arounds for this issue but none of them are ideal. I am using lint 22.0.5. Thanks.
推荐答案
这是我要做的事与詹金斯和摇篮:
This is how I do it with Jenkins and Gradle:
- 配置詹金斯生成后行动发布的Android林特结果拿起仅不起毛的results.xml主体工程。默认值是** /不起毛的results.xml,包括库项目的皮棉结果。
- 设置
abortOnError在库项目的build.gradle文件忽略皮棉错误有假
。
这篇关于忽略库项目,在命令行上的Android皮棉的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!