备份Eclipse插件和设置 [英] Backup Eclipse plugins and settings

查看:366
本文介绍了备份Eclipse插件和设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Eclipse,并且有大量的插件安装和配置为我的需要。有没有什么好的方法来备份这些插件及其配置。我想要能够在期货eclipse版本(只要兼容)和不同的电脑上重放这些插件。



我知道我可以简单地归档整个 eclipse / 文件夹,但我觉得这有点不太客气。

解决方案

您的问题有两个部分:


  1. 在Eclipse安装之间复制设置

  2. 在Eclipse安装之间复制已安装的插件

#1很容易做到。您可以从文件 - >导出... - >首选项导出Eclipse首选项。生成的文件包含每个已安装插件的所有首选项。它在Eclipse安装和版本之间是可移植的。



#2不是真正的Eclipse的做事方式。这是可能的,但是您需要以不同的方式构建您安装的插件。而不是使用标准的更新管理器安装您的插件,您可以使用dropins文件夹。您需要做的是将要跨多个安装共享的每个功能和插件复制到具有以下结构的zip文件中:

  eclipse / 
功能/
plugins /

然后你可以将文件解压缩到您想要的所有日食的dropins文件夹中。



有关下拉列表的更多信息:
http://help.eclipse.org/helios/index.jsp?topic= /org.eclipse.platform.doc.isv/reference/misc/p2_dropins_format.html


I'm using Eclipse and have plenty of plugins installed and configured to my needs. Is there any good way to backup these plugins and the configuration of them. I want to be able to replay these plugins in futures eclipse version (as long as they are compatible) and on different PCs.

I know I could simply archive the whole eclipse/ folder, but I find this a little inelegant.

解决方案

There are two parts to your question:

  1. Copying your settings between Eclipse installs
  2. Copying your installed plugins between Eclipse installs

#1 is easy to do. You can export your Eclipse preferences from the File -> Export... -> Preferences. The resulting file contains all of your preferences for each installed plugin. It is portable between Eclipse installs and versions.

#2 is not really the "Eclipse" way of doing things. It is possible, but you need to structure your installed plugins differently. Rather than using the standard update manager to install your plugins, you can use the dropins folder. What you need to do is to copy every feature and plugin that you want to be shared across multiple installs into a zip file with the following structure:

eclipse/
    features/
    plugins/

Then you can unzip the file into the dropins folder of all the Eclipses that you want.

More information on dropins: http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/misc/p2_dropins_format.html

这篇关于备份Eclipse插件和设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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