Can an extra plugin directory be specified on command line(可以在命令行上指定额外的插件目录吗)
问题描述
在 Eclipse 3.4 中,是否可以从命令行提供额外的插件目录?比如:
eclipse -plugin_dir D:/myproduct/V1.1/plugins -clean
这只是为了保存每次复制插件.
虽然可以使用脚本进行复制,但用户可能没有写入系统安装eclipse的权限.
<小时>跟进:
@VonC 给出的解决方案是在多个 Eclipse 中重用相同的插件.
我正在寻找一个在相同的 Eclipse 中使用多个版本的插件.(如果用户安装了我的插件的 1.1 版和 1.2 版)
已解决:
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory指向的目录应该以一个名为eclipse"的目录结束
在这个 eclipse 里面应该有一个叫做 plugins 的目录,
将所有的jar包放在plugins目录中
创建一个启动器,它使用额外的命令行启动 eclipse:
<块引用>
-vmargs-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=AbsolutePatheclipse
可能还想添加 -clean
..
如 了解更多详情.
With Eclipse 3.4, is it possible to provide an ADDITIONAL plugin directory from command line? Something like:
eclipse -plugin_dir D:/myproduct/V1.1/plugins -clean
This is just to save copying of plugins everytime.
While copying can be done with script, it's possible that user may not have write permissions to system install eclipse.
Follow up:
The solution given by @VonC is for reusing same plugins in multiple Eclipses.
I'm looking for a to use Multiple versions of plugins with Same Eclipse. ( If user has Version 1.1 and Vesion 1.2 of my plugin installed )
Resolved:
The directory pointed to by -Dorg.eclipse.equinox.p2.reconciler.dropins.directory should end with a directory named 'eclipse'
Inside this eclipse where should be directory called plugins,
place all the jars at in the plugins directory
create a launcher , which launch eclipse with additional command line:
-vmargs -Dorg.eclipse.equinox.p2.reconciler.dropins.directory=AbsolutePatheclipse
One may want to add -clean
also ..
As mentionned in Installing Eclipse (3.4+) plugins in a directory other than ECLIPSE_HOME/plugins, the right way is to define a bundle pools (also introduced here)
See my previous answer for more details.
这篇关于可以在命令行上指定额外的插件目录吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:可以在命令行上指定额外的插件目录吗


基础教程推荐
- Java 实例变量在两个语句中声明和初始化 2022-01-01
- 大摇大摆的枚举 2022-01-01
- Java Swing计时器未清除 2022-01-01
- 验证是否调用了所有 getter 方法 2022-01-01
- 如何在 JFrame 中覆盖 windowsClosing 事件 2022-01-01
- 不推荐使用 Api 注释的描述 2022-01-01
- 多个组件的复杂布局 2022-01-01
- 如何在 Spring @Value 注解中正确指定默认值? 2022-01-01
- 在 Java 中创建日期的正确方法是什么? 2022-01-01
- 从 python 访问 JVM 2022-01-01