Eclipse 在哪里存储用户目录中的设置和插件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4500838/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 15:31:38  来源:igfitidea点击:

Where does Eclipse store settings and plugins in userdir?

eclipseunixpluginsinstallation

提问by Daniel B?hmer

I've just installed a new Linux distro on my box and want to move my Eclipse home from the old /home/username/to my new one. Because I changed the desktop, I don't want to copy all hidden folders from ~/. So which directories do I need copy in order to have all my installed plugins?

我刚刚在我的机器上安装了一个新的 Linux 发行版,并想将我的 Eclipse 主页从旧版移动/home/username/到新版。因为我换了桌面,不想复制所有隐藏文件夹~/。那么我需要复制哪些目录才能拥有所有已安装的插件?

I've already copied ~/.eclipse/and it definitely contains files related to the plugins but Eclipse won't load them. Any hints?

我已经复制了~/.eclipse/,它肯定包含与插件相关的文件,但 Eclipse 不会加载它们。任何提示?

采纳答案by Daniel B?hmer

We've eventually found the directory containing all that stuff by accident. Somehow we broke it and Eclipse refused to start on my coworker's computer:-)

我们最终偶然发现了包含所有这些东西的目录。不知何故,我们破坏了它,Eclipse 拒绝在我同事的计算机上启动:-)

See ~/workspace/.metadata/.pluginsor wherever your workspace resides.

查看~/workspace/.metadata/.plugins或您的工作区所在的任何位置。

回答by Eli Acherkan

As far as I know, Eclipse stores its plugins in its installation directory (eclipse). They might reside in eclipse/pluginsor eclipse/dropins. You can copy the whole eclipsedirectory from your old box.

据我所知,Eclipse 将其插件存储在其安装目录 ( eclipse) 中。他们可能驻留在eclipse/pluginseclipse/dropins。您可以eclipse从旧盒子中复制整个目录。