可以在命令行中指定一个额外的插件目录 [英] Can an extra plugin directory be specified on command line

查看:130
本文介绍了可以在命令行中指定一个额外的插件目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Eclipse 3.4,是否可以从命令行提供一个ADDITIONAL插件目录?如下所示:

  eclipse -plugin_dir D:/myproduct/V1.1/plugins -clean 

这只是为了每次保存插件的复制。



复制可以是完成脚本,用户可能没有
对系统安装eclipse的写入权限。






跟进:



@VonC提供的解决方案是在多个日食中重复使用相同的插件。



我正在寻找为了使用具有相同Eclipse的多个版本的插件。
(如果用户安装了我的插件的版本1.1和Vesion 1.2)



已解决:




  1. 由-Dorg.eclipse.equinox.p2.reconciler.dropins.directory
    指向的目录应以名为eclipse的目录结尾


  2. 在这个eclipse里面,应该是名为plugins的目录,


  3. 将所有的jar放在plugins目录下>


  4. 创建一个启动器,它使用额外的命令行启动eclipse:





-vmargs
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory = AbsolutePath\eclipse


还可以添加 -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:

  1. The directory pointed to by -Dorg.eclipse.equinox.p2.reconciler.dropins.directory should end with a directory named 'eclipse'

  2. Inside this eclipse where should be directory called plugins,

  3. place all the jars at in the plugins directory

  4. create a launcher , which launch eclipse with additional command line:

-vmargs -Dorg.eclipse.equinox.p2.reconciler.dropins.directory=AbsolutePath\eclipse

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.

这篇关于可以在命令行中指定一个额外的插件目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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