且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用Maven Tycho构建Eclipse跨平台

更新时间:2022-10-31 15:53:25

听起来像您有一个插件基础产品。在这种情况下,您将需要手动编辑.product文件并为这些插件添加平台过滤器。不幸的是,eclipse中的内置产品编辑器没有公开这些值。参见 http://wiki.eclipse.org/Tycho/FAQ#How_to_build_plugin- based_products_with_platform-specific_fragments.3F

It sounds like you have a plug-in based product. In this case you will need to manually edit your .product file and add in platform filters for these plug-ins. Unfortunately the built-in product editor in eclipse does not expose these values. See http://wiki.eclipse.org/Tycho/FAQ#How_to_build_plugin-based_products_with_platform-specific_fragments.3F

对于每个插件org.eclipse.swt.win32.win32.x86,您将需要添加以下内容;

For each plugin e.g. org.eclipse.swt.win32.win32.x86 you will need to add something like;

<plugin id="org.eclipse.swt.win32.win32.x86" fragment="true" ws="win32" os="win32" arch="x86"/>

注意,如果使用产品编辑器,它将删除这些值。

Note, if you use the product editor it will remove these values.

但是,***使用基于功能的产品。功能编辑器允许编辑这些字段。

It is better however to use a feature based product. The feature editor permits these fields to be edited.