|Single-class plugin patch? [message #543609]
||Wed, 30 June 2010 04:22
| Mark A. Ziesemer
Registered: July 2009
Location: Appleton, WI
What is the best way to apply a feature/plugin patch? There is a patch on a bug that wasn't included in Helios - and all I really need to do is patch one class. I already have a patched project and a built .jar - I just don't know the best way to get it to work well with P2.|
It looks like I had some success by creating a "Feature Patch" project (which adds a <requires/> with a child <import feature .../> with patch=true in the feature.xml), then including the patched plugin project under "Plug-ins" (which adds a <plugin .../> element.)
Is there a better way of doing this? If not, is exporting the Feature Patch project as "Deployable Features", then using the created folder as an Eclipse update site also the best way of getting Eclipse to recognize the patched plugin?
Finally, this results in an update site of over 1 MB, as it includes the entire feature / patched plugin. Is there a way to only include the single patched *.class file, such that it is used instead of the one in the original plugin? Ideally, the update site would then only need to be a few KB.
Powered by FUDForum
. Page generated in 0.02553 seconds