在 Equinox 中,一个功能/捆绑包是否有可能淘汰另一个功能/捆绑包?

发布于 2024-09-07 01:57:03 字数 447 浏览 2 评论 0原文

我有一个基于 Eclipse 的项目(Scala IDE for Eclipse),最近搬到了新家。我想更改各种功能 id、Bundle-SymbolicNames 等以反映移动(即,以便它们都有 org.scala-ide 前缀)并重新启动版本编号(以前它与相应的 Scala 编译器版本绑定)我想将这些解耦)。

但我希望 p2 认识到这一点,例如。 org.scala-ide.sdt.feature v.1.0.0 是 ch.epfl.lamp.sdt v.2.7.7 的升级版。通过 RPM,可以使用 过时指令 ... p2 是否有等效指令?

I have a Eclipse-based project (the Scala IDE for Eclipse) which has recently moved to a new home. I want to change the various feature ids, Bundle-SymbolicNames etc. to reflect the move (ie. so that they all have an org.scala-ide prefix) and restart the version numbering (previously it was tied to the corresponding Scala compiler release and I want to decouple these).

But I want p2 to recognize that, eg. org.scala-ide.sdt.feature v. 1.0.0 is an upgrade of ch.epfl.lamp.sdt v. 2.7.7. With RPM it would be possible to do this using an obsoletes directive ... is there an equivalent for p2?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

岁月静好 2024-09-14 01:57:03

我相信这是可能的,但目前没有工具(或文档)。

每个 IU 包含一个更新描述符 (javadoc)指示它是哪个 IU 的更新。现有工具始终将其设置为同一包的先前版本。在 content.xml 中,它看起来像这样:

<unit id='org.eclipse.equinox.launcher' version='1.1.0.v20100507'>
   <update id='org.eclipse.equinox.launcher' range='[0.0.0,1.1.0.v20100507)' severity='0'/>
   ...

要设置它,您可以

  1. 等待 bug 282545 进行修复。
  2. 手动编辑 content.xml(可能是 xslt 转换)
  3. 扩展 p2 发布者生成不同的描述符。您可能希望覆盖 BundlesAction 以使用您自己的 BundlesAction#createBundleIU 版本。

I believe this is possible, but there is currently no tooling (or documentation) for it.

Each IU contains an Update Descriptor (javadoc) which indicates which IU it is an update of. The existing tooling always sets this to be previous versions of the same bundle. In the content.xml it looks like this:

<unit id='org.eclipse.equinox.launcher' version='1.1.0.v20100507'>
   <update id='org.eclipse.equinox.launcher' range='[0.0.0,1.1.0.v20100507)' severity='0'/>
   ...

To set this you could

  1. Wait for bug 282545 to get fixed.
  2. Edit the content.xml manually (perhaps an xslt transform)
  3. Extend the p2 publisher to generate a different descriptor. You would want to override BundlesAction to use your own version of BundlesAction#createBundleIU.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文