移动Eclipse安装目录会导致问题 [英] Moving eclipse installation directory causes problems

查看:134
本文介绍了移动Eclipse安装目录会导致问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近重新组织了Eclipse安装目录,以适应各种形式的Eclipse(Helios,Indigo,Juno),但这随后导致了一个问题,即 .eclipse目录(位于我的主目录中) )的子文件夹可标识eclipse版本,但以我认为可标识安装目录的后缀结尾

I've recently re-organised my Eclipse installation directories, to cater for various flavours of Eclipse (Helios, Indigo, Juno), but then this caused a problem as the ".eclipse" directory (that lives in my home directory) has sub folders that identify the eclipse version but end with a suffix that I think identifies the install directory

for example: org.eclipse.platform_3.6.1_12345678

因此,通过更改Eclipse安装目录,然后启动Eclipse,新的子文件夹已创建,我安装的插件的知识也丢失了。

So with changing the Eclipse install directory, and then booting up Eclipse, a new subfolder was created and the knowledge of my plugins installed is lost.

为什么Eclipse会这样做?以及如何管理Eclipse,以便将两个目录绑定在一起,这样我就可以自由移动安装文件夹而不会破坏任何内容?

Why does Eclipse do this ? And how can I manage Eclipse such that I can tie the 2 directories together so I am free to move installation folder without breaking anything?

在配置(插件)和工作区方面,是否有管理多个Eclipse安装的良好实践?

Is there any good practices of managing multiple Eclipse installations, with respect to configuration ( plugins ), and workspaces ?

推荐答案

默认情况下,eclipse始终将其本地配置存储在用户的home .eclipse文件夹中。但是,您可以覆盖默认值。

By default, eclipse always stores its local configuration in the user's home .eclipse folder. You can override the default though.

在每个不同版本的eclipse.ini文件中,您可以添加以下JVM参数(确保在下面添加此行) -vmargs行)

In the eclipse.ini file for each of your different versions, you can add the following JVM parameter (make sure you add this line below the -vmargs line)

-Dosgi.configuration.area=@user.home/.eclipse<version>

其中

<version>

是您为该特定日食选择的标识符。

is whatever identifier you choose for that particular version of eclipse.

这应该有助于使不同的配置分开,并防止它们相互踩踏。

This should help keep the different configurations separate and prevent them from stomping on each other.

希望这会有所帮助。

这篇关于移动Eclipse安装目录会导致问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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