Eclipse指定dropins插件位置

Eclipse插件安装有多种方式

1. 自行添加update site 安装

2. 自行添加本地zip包作为update site安装

3. link安装

4. 直接将插件对应的plugins和features放入Eclipse对应的文件夹

5. Eclipse 3.3之后可以将插件直接放入dropins文件夹安装

我个人最常用的是第五种方法

但是有时候有些情况下想切换插件方案, 而dropins文件夹只有一个, 拷贝插件还是挺麻烦的

猜想Eclipse如此灵活的工具应该支持配置dropins文件夹的位置

baidu了许久无果

Google了一下, 找了IBM网站上一篇文章, 通过配置虚拟机参数来指定dropins文件夹位置

Configuring additional Eclipse dropins directories

里面提到了三种方式

1. 在命令行后面加参数

    如: eclipse.exe -vmargs -Dorg.eclipse.equinox.p2.reconciler.dropins.directory=C:/dropins

2. 在eclipse\eclipse.ini中加参数

3. 在eclipse\configuration\config.ini中加参数

个人选择第一种方式, 创建快捷方式后加上不同的参数即可, 参数值可以采用相对路径

如: -vmargs -Dorg.eclipse.equinox.p2.reconciler.dropins.directory=dropins-aaa或dropins-bbb, 即指定Eclipse的dropins文件夹为dropins-aaa或dropins-bbb

英文不是很复杂, 为避免链接失效.

引用原文
Technote (FAQ)

Question
How do you configure an additional dropins directory in Eclipse?
Answer
Set the System property org.eclipse.equinox.p2.reconciler.dropins.directory to point to a directory that you want to watch for plug-ins.
You can configure the property the following three ways:
1. Start Eclipse with an additional command line argument:
for example:
eclipse.exe -vmargs -Dorg.eclipse.equinox.p2.reconciler.dropins.directory=C:/dropins
2. By adding the following line at the end of eclipse\eclipse.ini file:
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=path/to/directory
3. By adding the following line to eclipse\configuration\config.ini file:
org.eclipse.equinox.p2.reconciler.dropins.directory=path/to/directory

The property can point to only one directory.
You must also notice that several Eclipse based products set this property to point to the directory which is necessary to start the product. Reconfiguring this property leads to corruption of the installation (it might cause the product to crash at startup or disable major features). Examples of products which set this property are the IBM Rational products installed by IBM Installation Manager, including, but not limited to: IBM Rational Software Architect, IBM Rational Software Architect for WebSphere Software, IBM Software Architect Real Time Edition, IBM Rational Application Developer for Websphere Software.

猜你喜欢

转载自136589219.iteye.com/blog/1935672