Eclipse 功能补丁不修补插件
我正在尝试为 org.eclipse.platform 功能创建功能补丁。
这是功能 xml:
<feature
id="com.eclipse.platform.patch"
label="MAS Eclipse Platform Patch"
version="0.0.1.qualifier"
provider-name="MAS">
<requires>
<import feature="org.eclipse.platform" version="4.22.0.v20211124-1800" patch="true"/>
</requires>
<plugin
id="org.eclipse.ui.navigator"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.ui.ide"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.ltk.ui.refactoring"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.ui.navigator.resources"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
</feature>
我的工作区中有 4 个插件,代码对原始包进行了更改。 但我将捆绑版本与原始版本保持一致。
我可以将该功能导出到 P2 站点。一切正常,功能和插件都存在。
然后,我将该功能安装到刚刚下载的 eclipse-platform-4.22-linux-gtk-x86_64.tar.gz 安装中。 安装成功完成,但没有修补任何插件。
我在 StackOverflow 中进行了搜索,并遵循了我找到的所有提示,例如 Eclipse 功能补丁不工作,或者 如何正确修补功能? (功能补丁无需插件即可安装) 但仍然没有修补任何插件。
I'm trying to create a feature patch for org.eclipse.platform
feature.
This is the feature xml:
<feature
id="com.eclipse.platform.patch"
label="MAS Eclipse Platform Patch"
version="0.0.1.qualifier"
provider-name="MAS">
<requires>
<import feature="org.eclipse.platform" version="4.22.0.v20211124-1800" patch="true"/>
</requires>
<plugin
id="org.eclipse.ui.navigator"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.ui.ide"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.ltk.ui.refactoring"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.ui.navigator.resources"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
</feature>
With 4 plugins that I have in my workspace, with code changes from the original bundles. But I've left the bundle version exactly as the originals.
I can export the feature to a P2 site. Everything works, the feature and plugins are present.
Then, I install the feature to a just downloaded eclipse-platform-4.22-linux-gtk-x86_64.tar.gz
installation.
The install finish successfully, but no plugin is patched.
I have searched in StackOverflow and followed all the hint's I've found, like Eclipse feature patch doesn't work, or
How to patch a feature right? (Feature-Patch gets installed without the Plugin)
but still no plugin is patched.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需使用插件的“较新”版本,例如与原始
3.10.200.v20211009-1706
相比的3.10.200.v20211009-1707
即可。现在,该功能除了原始插件之外,还安装了修补过的插件。
当然,应该使用一些语义版本来表示补丁,我认为像
3.10.201.qualifier
这样的东西可以使用 Eclipse 版本控制规则。Simply using a "newer" version for the plugins, like for example
3.10.200.v20211009-1707
compared to the original3.10.200.v20211009-1706
works.Now the feature install also the patched plugins, alongside the original ones.
Of course some semantic version should be used to signal the patch, I think something like
3.10.201.qualifier
could be ok with Eclipse versioning rules.