Eclipse插件安裝有多種方式 eclipse
1. 自行添加update site 安裝 工具
2. 自行添加本地zip包做爲update site安裝 網站
3. link安裝 ui
4. 直接將插件對應的plugins和features放入Eclipse對應的文件夾 this
5. Eclipse 3.3以後能夠將插件直接放入dropins文件夾安裝 spa
我我的最經常使用的是第五種方法 插件
可是有時候有些狀況下想切換插件方案, 而dropins文件夾只有一個, 拷貝插件仍是挺麻煩的 命令行
猜測Eclipse如此靈活的工具應該支持配置dropins文件夾的位置 three
baidu了許久無果 ip
Google了一下, 找了IBM網站上一篇文章, 經過配置虛擬機參數來指定dropins文件夾位置
裏面提到了三種方式
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.