编译器警告插件:文件集排除
我们使用 Hudson 作为我们的构建机器,我正在尝试为编译器警告插件配置排除文件集。 Hudson 解析构建日志以确定警告/错误,我们的 Clover 脚本输出真实警告的重复项。
正如 Hudson 所记录的,您可以配置 ANT 文件集来排除某些警告:
Warnings to ignore:: Fileset 'excludes' setting that specifies the warnings to exclude from the report (based on their filename).
我收到以下警告(重复): 我已将
C:/vsfz/temp/1/clover1710786373818922904.tmp/src4952837385592305293.tmp/corp/app/path
....
排除文件集设置为:
*vsfz/temp/*/clover*/**
我希望文件集与警告相匹配,并且不会将它们添加到编译器中警告报告,事实并非如此。有人发现上面的文件集定义有问题吗?
We are using Hudson as our build machine and I am trying to configure the excludes fileset for the Compilier Warnings plugin. Hudson parses the build log to determine warnings/errors and our Clover scripts output duplicates of real warnings.
As documented by Hudson you can configure an ANT fileset to exclude certain warnings:
Warnings to ignore:: Fileset 'excludes' setting that specifies the warnings to exclude from the report (based on their filename).
I am getting the following warnings (duplicates):
C:/vsfz/temp/1/clover1710786373818922904.tmp/src4952837385592305293.tmp/corp/app/path
....
I have set the excludes fileset to:
*vsfz/temp/*/clover*/**
I expected the Fileset to match the warnings and for them not be added to the Compiler Warnings report, this is not the case. Does anyone see a problem with the above Fileset definition?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
尝试类似:
C:/vsfz/temp/*/clover*/**
或
**/vsfz/temp/*/clover*/**
另一个问题可能是
clover*
不正确匹配,因此您必须将其写为clover*.*
但我不认为这是问题所在。Try something like:
C:/vsfz/temp/*/clover*/**
or
**/vsfz/temp/*/clover*/**
another problem might be that
clover*
doesn't match correctly so that you have to write it asclover*.*
but I don't think this is the issue.我今天只是搞乱了这个,只有当我指定文件扩展名
*.cs
时才能让它工作,或者也许*.*
可以工作?无论如何
**/old*/**/*.cs
为我工作。希望这有帮助。
I was just messing with this today and I could only get it to work when I specified the file extension
*.cs
or maybe*.*
would work?anyway
**/old*/**/*.cs
worked for me.Hope this helps.
我设法让这件事继续下去(它已经被搁置了相当长一段时间了)。
我最终使用的模板:
I managed to get this going (it has been on the back burner for quite some time now).
The template that I ended up using: