我正在尝试将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.
更多推荐
发布评论