编译器警告插件:文件集排除

发布于 2024-09-12 06:09:57 字数 575 浏览 7 评论 0原文

我们使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

橪书 2024-09-19 06:09:57

尝试类似:

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 as clover*.* but I don't think this is the issue.

自我难过 2024-09-19 06:09:57

我今天只是搞乱了这个,只有当我指定文件扩展名*.cs时才能让它工作,或者也许*.*可以工作?

无论如何 **/old*/**/*.cs 为我工作。

希望这有帮助。

I was just messing with this today and I could only get it to work when I specified the file extension*.csor maybe *.* would work?

anyway **/old*/**/*.cs worked for me.

Hope this helps.

内心激荡 2024-09-19 06:09:57

我设法让这件事继续下去(它已经被搁置了相当长一段时间了)。

我最终使用的模板:

**/temp/**

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:

**/temp/**
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文