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.
这篇关于可以在命令行上指定额外的插件目录吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:可以在命令行上指定额外的插件目录吗
- Spring Boot连接到使用仲裁器运行的MongoDB副本集 2022-01-01
- 如何使用WebFilter实现授权头检查 2022-01-01
- Java包名称中单词分隔符的约定是什么? 2022-01-01
- C++ 和 Java 进程之间的共享内存 2022-01-01
- Eclipse 插件更新错误日志在哪里? 2022-01-01
- Jersey REST 客户端:发布多部分数据 2022-01-01
- value & 是什么意思?0xff 在 Java 中做什么? 2022-01-01
- 从 finally 块返回时 Java 的奇怪行为 2022-01-01
- Safepoint+stats 日志,输出 JDK12 中没有 vmop 操作 2022-01-01
- 将log4j 1.2配置转换为log4j 2配置 2022-01-01
