0

我有一个包含大约 100 - 200 个功能和更多插件的更新站点。对于某些用户来说,所有这些都是必需的,所以我想通过创建一个他们可以安装的功能来简化安装过程。然后,此功能将包含更新站点的所有内容。

我创建了一个新功能项目,我的计划是将原始更新站点的内容添加为该项目中包含的功能和插件。

问题是;在我的功能项目中,当在“包含的功能”选项卡中添加功能时,我只能添加当前安装在我的 Eclipse 平台中的功能。我宁愿不安装这 200 个功能,以便添加它们。

有没有办法解决这个问题?

4

3 回答 3

2

如果没有安装在目标平台中的功能,您将需要直接编辑 feature.xml 文件。您需要做的就是为要包含的每个功能添加以下内容:

<includes
     id="<add_feature_id>"
     version="0.0.0"/>

您的构建过程(PDE 或 tycho)应该为您添加正确的版本号。

于 2013-09-13T21:19:19.333 回答
1

I think you should have a detailed look at the Eclipse target platform concept. The features don't need to be installed in your current Eclipse platform (i.e. the IDE), they need to be installed in the target platform to be available for an update site.

If you never defined a target platform, your currently running application will be taken as IDE, and that is where your confusion might come from.

于 2013-09-16T13:56:32.913 回答
0

当我尝试操作某个功能时,我只需要将它们放在我的工作区中。没有理由安装它们。

于 2013-09-16T14:31:25.227 回答