如何修补eclipse插件? [英] How to patch an eclipse plugin?

查看:194
本文介绍了如何修补eclipse插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想修复eclipse插件(WTP的官方插件)中的错误。
我本地更改了源代码,调试它 - 一切都很好。



现在我想将这个更改传播到我的eclipse安装,但我是面临问题。
似乎有多种方法可以实现这一点,例如:



本网站推荐片段,但Eclipse常见问题解答不利于。



但是我被卡住了,似乎没有办法为我工作。 b
$ b

更新:



根据建议,我尝试创建并安装功能补丁。
安装完成后,功能修补程序已安装,但不包含修补插件。
上一个/现有版本的插件仍然存在并处于活动状态。



我想知道为什么会这样吗?
这是否与签署官方插件有关?
有没有一个日志,看看为什么补丁插件还没有安装?



FINAL UPDATE:



问题是我修补了父功能(已在eclipse安装细节中显示),而不是直接包含该插件的直接功能。
指定正确的/最低级别功能进行修补,一切都按预期工作。

解决方案

方法是创建所谓的功能补丁。功能补丁包括您正在修补的整个新版本的插件,以及描述正在修补的内容的功能。看到这个有用的博文:



http://aniefer.blogspot.com/2009/06/patching-features-with-p2.html


I'd like to fix a bug in an eclipse plugin (an official plugin of the WTP). I locally changed the source code, debugged it - everything is fine.

Now I'd like to propagate this change to my eclipse installation, but I am facing problems. There seems to be more than one way to achieve this, e.g.:

This site recommended fragments, but the Eclipse FAQ disadvises that.

But I am stuck and no way seems to work for me.

UPDATE:

I tried to create and install a feature patch, as suggested. After this installation the feature patch is installed, but not the containing patched plugin. The previous/existing version of the plugin is still present and active.

I'd like to know why this is the case? Does this something have to do with signing of the official plugins? Is there a log to see why the patched plugin has not been installed?

FINAL UPDATE:

The problem was that I patched a parent feature (which has been shown in the eclipse installation details), not the direct feature which directly contained the plugin. After specifying the correct/"lowest-level" feature for patching, everything worked as expected.

解决方案

The best approach is to create what's known as a "feature patch". A feature patch consists of the entire new version of the plugin you are patching along with a feature that describes what's being patched. See this useful blog post:

http://aniefer.blogspot.com/2009/06/patching-features-with-p2.html

这篇关于如何修补eclipse插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆