【问题标题】:Eclipse ant build gives "Another singleton version selected", how can I stop that?Eclipse ant build 给出“选择了另一个单例版本”,我该如何阻止它?
【发布时间】:2010-04-23 14:26:05
【问题描述】:

我们运行 org.eclipse.ant.core.antRunner 来构建我们的插件和 RCP 项目。在构建日志中,我们会收到大量消息,例如:

[eclipse.buildScript] Bundle org.eclipse.X:  
[eclipse.buildScript]   Another singleton version selected: org.eclipse.equinox.X_1.0.4.v20081112-1019

原因很清楚;特定捆绑包有两个不同版本,它选择了最新版本。我们无法更改 Eclipse 安装以删除旧插件,那么可以做些什么来消除这些消息?

Bonusquestion:哪个类打印出这些消息?一种选择是创建我们自己的版本,其中永远不会显示这些消息。

编辑
Stackoverflow 提出了这个问题:
Customizing AntRunner output
从那里我找到了这个页面:
http://ant.apache.org/manual/listeners.html
其中包含 ant logger 和 listeners 的更多信息。

【问题讨论】:

    标签: eclipse ant


    【解决方案1】:

    从 Eclipse 3.5 开始,可以通过在构建配置 build.properties 文件中设置 suppressResolutionErrors=true 来关闭消息。 (这实际上是添加到speed up the unit tests。)

    消息打印在org.eclipse.pde.internal.build.site.BuildTimeSite#getRegistry()

    【讨论】:

    • 谢谢。我们使用的是 3.4,所以这对我没有直接帮助。但是,如果它在 3.5 中修复,我想我们现在可以忍受。
    • 我们现在使用 E3.6.1 和 suppressResolutionErrors=true,但仍然收到警告消息。我看到这个 bug 仍然处于新状态,所以它还没有发布?
    猜你喜欢
    • 2015-08-01
    • 1970-01-01
    • 1970-01-01
    • 2021-07-08
    • 2014-11-20
    • 2011-06-04
    • 1970-01-01
    • 2021-12-09
    • 2013-10-16
    相关资源
    最近更新 更多