(Eclipse)如何使用我的功能打包第三方插件?

时间:2021-05-05 23:28:20

MyFeature consists of plugins a, b and c which depend on a third-party plugin d. How do I package MyFeature such that

MyFeature包含依赖于第三方插件d的插件a,b和c。如何打包MyFeature

  1. It contains d and can install it if it doesn't exist in the target workbench
  2. 它包含d,如果目标工作台中不存在,则可以安装它

  3. My plugins a, b and c can refer to a specific version of d even if higher or lower versions exist in the workbench
  4. 即使工作台中存在更高版本或更低版本,我的插件a,b和c也可以引用特定版本的d

  5. The dependency requirements of d be met if it is about to be installed
  6. 如果要安装,则满足d的依赖性要求

P.S. I realize some of the above may not be possible. I am just stating my current problem as I see it and if there's a better way that I am completely missing

附:我意识到上面的一些可能是不可能的。我只是陈述我当前的问题,如果有一个更好的方式,我完全失踪

1 个解决方案

#1


All what you need is easily done. Your a,b,c plugins can depend on exact version of d. Eclipse plugin development tools allow you to set this.

您需要的一切都很容易完成。你的a,b,c插件可能取决于d的确切版本。 Eclipse插件开发工具允许您设置它。

Plugin 'd' should be on your update site, next to your plugins. Your feature should explicitely declare that it consist of a, b, c and d. If 'd' needs more plugins, it would be best if you also provide them on your update site (and your feature can then include them too).

插件'd'应位于您的更新站点上,插件旁边。您的功能应明确声明它由a,b,c和d组成。如果'd'需要更多插件,最好还是在更新站点上提供它们(然后您的功能也可以包含它们)。

PDEBuild (ant scripts for headless building of eclipse plugins) supports extracting/repackaging of 3rd party plugins, so you can use this to prepare your feature.

PDEBuild(用于eclipse插件无头构建的ant脚本)支持第三方插件的提取/重新打包,因此您可以使用它来准备您的功能。

#1


All what you need is easily done. Your a,b,c plugins can depend on exact version of d. Eclipse plugin development tools allow you to set this.

您需要的一切都很容易完成。你的a,b,c插件可能取决于d的确切版本。 Eclipse插件开发工具允许您设置它。

Plugin 'd' should be on your update site, next to your plugins. Your feature should explicitely declare that it consist of a, b, c and d. If 'd' needs more plugins, it would be best if you also provide them on your update site (and your feature can then include them too).

插件'd'应位于您的更新站点上,插件旁边。您的功能应明确声明它由a,b,c和d组成。如果'd'需要更多插件,最好还是在更新站点上提供它们(然后您的功能也可以包含它们)。

PDEBuild (ant scripts for headless building of eclipse plugins) supports extracting/repackaging of 3rd party plugins, so you can use this to prepare your feature.

PDEBuild(用于eclipse插件无头构建的ant脚本)支持第三方插件的提取/重新打包,因此您可以使用它来准备您的功能。