eclipse 如何在两个日食之间复制插件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2854765/
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
How to copy plugins between two eclipses
提问by Ron
I have two eclipse directories, both are Galileo. One has plugin A installed, the another has plugin B. Now I want to have just one eclipse, is it save to just copy the plugins directory from one of the eclipses to the other?
我有两个 eclipse 目录,都是 Galileo。一个安装了插件 A,另一个安装了插件 B。现在我只想拥有一个 eclipse,是否只需将插件目录从一个 eclipse 复制到另一个?
回答by seanf
I'm not sure when it was introduced, but in Eclipse 3.7 you can install plug-ins from another Eclipse installation via the GUI: File->Import->Install->From Existing Installation
. You can also transfer the list of update sites. See https://stackoverflow.com/a/10494974/14379
我不确定它是什么时候引入的,但是在 Eclipse 3.7 中,您可以通过 GUI 从另一个 Eclipse 安装安装插件:File->Import->Install->From Existing Installation
. 您还可以传输更新站点列表。见https://stackoverflow.com/a/10494974/14379
回答by VonC
Yes, but I would recommend using a "shared dropins directory" to avoid the copy altogether.
是的,但我建议使用“共享 dropins 目录”来完全避免复制。
Modify tour eclipse.inifor both installation:
为两个安装修改 tour eclipse.ini:
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/<myPath>/mySharedDropins
Sadly, when you originally install a plugin, you cannot install it directly in the shared dropins, so at least one copy is still necessary there.
遗憾的是,当您最初安装插件时,您无法直接将其安装在共享的 dropins 中,因此那里至少还需要一个副本。
回答by tangens
Yes, it is safe. This is one way (not the preferred one) to install new plugins.
是的,这是安全的。这是安装新插件的一种方式(不是首选)。
回答by Zoltán Ujhelyi
You can also install one plugin from another using p2. You add the other installed Eclipse as an update site, and you can select the installed plug-in (after unchecking the categorization).
您还可以使用 p2 从另一个插件安装一个插件。您将其他已安装的 Eclipse 添加为更新站点,并且您可以选择已安装的插件(取消选中分类后)。
For update site you the following path: /path/to/eclipse/p2/org.eclipse.equinox.p2.engine/profileRegistry/SDKProfile.profile
对于更新站点,您使用以下路径:/path/to/eclipse/p2/org.eclipse.equinox.p2.engine/profileRegistry/SDKProfile.profile
回答by zvikico
An alternative to modifying the .inifile is using Link Files in your Dropins folders. The link files are simply text files with the extension .link. They contain a single (I think, never tried with multiple) line of text of the form:
修改.ini文件的另一种方法是使用 Dropins 文件夹中的链接文件。链接文件只是扩展名为.link 的文本文件。它们包含以下形式的单个(我认为,从未尝试过多个)文本行:
path=<full path to an external folder>
The folder you reference should have two sub-folders: pluginsand features, where you install your plugins. You can install multiple plugins in a single location. You can drop multiple link files, which means, you can maintain sets of plugins and drop them into different Eclipse installations (which is more flexible than using a shared dropins).
您引用的文件夹应该有两个子文件夹:plugins和features,您可以在其中安装插件。您可以在一个位置安装多个插件。您可以删除多个链接文件,这意味着您可以维护插件集并将它们放入不同的 Eclipse 安装中(这比使用共享 dropins 更灵活)。
More information:
更多信息:
- More details on link files(though seriously prehistoric article).
- Read about links files in P2(not very informative).
- 有关链接文件的更多详细信息(尽管是史前文章)。
- 阅读 P2 中的链接文件(信息量不大)。