Eclipse 3.5可以发现插件目录中的所有bundle? [英] Can Eclipse 3.5 discover all bundles in the plugins dir?

查看:151
本文介绍了Eclipse 3.5可以发现插件目录中的所有bundle?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

简单用例:使用简单的脚本组装Eclipse产品,只需将包转储到插件目录中。
这个以前与3.3一起使用 - 3.5是坏的:我的应用程序没有启动,因为没有找到应用程序插件。

Simple usecase: assemble an Eclipse product using simple scripts, just dumping bundles into the plugins dir. This used to work with 3.3 - with 3.5 it's broken: my application doesn't start as the app plugin is not found.

问题:最简单的解决方法是什么?这似乎是我整个升级过程中唯一的痛苦。

Question: what's the easiest way to fix that? This seems to be the only pain in the whole upgrade process for me.

尝试
我想这是P2的一个no-no:它维护bundles.info文件,这可能是非常聪明的..有点太聪明了我。

Attempts: I guess this is a no-no for P2: it maintains the bundles.info file instead, which is probably very smart.. a bit too smart for me.

我有一些想法:


  1. 我可以完全跳过P2,回到简单的简单的发现机制吗?

  2. 我可以将插件目录设置为观看目录


    • 看起来像我需要使用p2。调和一下..哦,等等,已经不推荐了:-( bug 251561 (感谢VonC指针)

  1. can I just skip P2 altogether and get back to plain old, simple -dirty- discovery mechanism?
  2. can I set up plugins dir as a 'watched directory'
    • looks like I need to use the p2.reconciler for that.. oh wait, it's deprecated already :-( bug 251561.. (thanks VonC for the pointer)

我不在乎我的产品中的所有这些智能功能 - 实际上用户不使用内置的更新机制在所有。
所以我想要KISS(即:只是为了启动),并在需要时添加更高级的支持

I don't care about all those smart features in my product yet- actually the users don't use the built-in update mechanism at all. So I'd like to KISS (ie: just to start up), and add more advanced support when needed.

我已经在 Eclipse论坛,但没有答案,所以真的会感激一些启示。
此外,请随时更正我的假设 - 我刚刚阅读了 P2 docs ,这似乎有点混乱。
谢谢!

I've asked this on Eclipse forums, but no answer yet, so would really be grateful for some enlightenment. Also, feel free to correct me on the assumptions - I've just read the P2 docs, which seem confusing at times. Thanks!

答案:上面的实际选项3似乎全部工作 - 感谢 Francis 确认! (它原来没有工作,但这可能是由一些失踪的deps造成的)。
我现在唯一的问题是,一些Eclipse捆绑实际上需要简单的配置。所以我想知道如果把它交换出来会导致问题落空。

Answer: actually option 3 above seems to work after all - thanks Francis for confirming this! (it didn't work originally, but that was probably caused by some missing deps). My only issue with that now is, some Eclipse bundles actually require simpleconfigurator. So I wonder if swapping it out will cause problems down the line.

推荐答案

你可以将你的配置/ config.ini文件修改为不使用org.eclipse.equinox.simpleconfigurator(它执行基于p2的配置),而是使用org.eclipse.update.configurator,这是老式的配置方式插件目录。这应该给你你想要的。

You can alter your configuration/config.ini file to not use the org.eclipse.equinox.simpleconfigurator (which does the p2-based configuration) and instead use the org.eclipse.update.configurator which is the old-school way of just configuring whatever is in the plugins directory. This should give you what you want.

这篇关于Eclipse 3.5可以发现插件目录中的所有bundle?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆