如何将equinox p2应用于包含DLL的RCP应用程序(How to apply equinox p2 to an RCP application containing DLLs)

编程入门 行业动态 更新时间:2024-10-27 02:26:20
如何将equinox p2应用于包含DLL的RCP应用程序(How to apply equinox p2 to an RCP application containing DLLs)

我正在尝试将p2更新机制实现到包含DLL(通过JNI集成)的RCP应用程序中。 整个RCP应用程序(包括这些DLL)必须保持最新。

目前PDE构建不知道DLL - make / gcc最终生成并将它们复制到交付中。

如何让p2知道这些DLL? 必须将它们添加到p2存储库,并且当更新的版本可用时,RCP应用程序中的p2必须更新它们。

I'm trying to implement the p2 update mechanism into an RCP application that contains DLLs (integrated via JNI). The whole RCP application (including these DLLs) has to be kept up to date.

Currently the PDE build is not aware of the DLLs - make/gcc generates and copies them into the delivery in the end.

How to make p2 aware of the DLLs? They have to be added to the p2 repository and p2 within the RCP application has to update them, when newer versions are available.

最满意答案

在您的插件中包含DLL。

在他们完成它们之后,将它们复制到插件项目的文件夹中。 然后将包含DLL的文件夹添加到plugin.xml编辑器中的Binary Build部分。 您可以使用插件的Mainfest.mf中的Bundle-NativeCode:条目使插件了解DLLS。 这样,DLL就包含在插件的jar中,因此会自动包含在p2存储库中。

Include the DLLs in your plugin.

After you have gnerated them, copy them into a folder in your plugin project. Then add the folder containing the DLLs to the Binary Build section in your plugin.xml editor. You can make the plugin aware of the DLLS using the Bundle-NativeCode: entry in the Mainfest.mf of the plugin. This way the DLLs are included inside your plugin's jar and are therefore automatically included in your p2 repository.

更多推荐

本文发布于:2023-07-31 07:59:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1341882.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用于   如何将   应用程序   equinox   DLL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!