Eclipse 插件 vs 特性 vs dropins
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2763843/
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
Eclipse plugins vs features vs dropins
提问by autobiographer
What is the difference between these things from an Eclipse installation?
这些东西与 Eclipse 安装有什么区别?
- plugins
- features
- dropins folder
- 插件
- 特征
- dropins 文件夹
What is the correct use of these folders?
这些文件夹的正确用法是什么?
采纳答案by VonC
I usually use dropins for sharing plugins amongst multiple Eclipse installations.
See this articlefor the dropins directory within an Eclipse.
我通常使用 dropins 在多个 Eclipse 安装之间共享插件。
请参阅本文以了解 Eclipse 中的 dropins 目录。
you can use some different structures to place the plug-ins into the Dropins folder – I prefer to separate them by domain:
您可以使用一些不同的结构将插件放入 Dropins 文件夹中——我更喜欢按域将它们分开:
/dropins/exampleA/plugins/…
/dropins/exampleB/plugins/…
/dropins/exampleC/eclipse/features/…
/dropins/exampleC/eclipse/plugins/…
But I prefer to reference an externaldropins folder through the eclipse.ini.
但我更喜欢通过 eclipse.ini引用外部dropins 文件夹。
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=C:/jv/eclipse/mydropins
The plugins
/features
directories in Eclipse are the default installation directories for plugin.
For more on the differences between features and plugins, see my SO answer:
在plugins
/features
在Eclipse目录是对插件的默认安装目录。
有关功能和插件之间差异的更多信息,请参阅我的SO 答案:
- you will copy features (declaration of a group of plugins) in the
features
directory - you will copy the actual plugins themselves in the
plugins
directory.
- 您将在
features
目录中复制功能(一组插件的声明) - 您将在
plugins
目录中复制实际的插件本身。
Within a dropin folder (either the one within eclipse or an external one), you will get back the same plugins
/feature
structure.
在 dropin 文件夹中(eclipse 中的文件夹或外部文件夹),您将返回相同的plugins
/feature
结构。
回答by Ham Vocke
The dropins directory should be used to install a plugin manually. The typical process is that you download a plugin and extract that archive to the dropins directory.
dropins 目录应该用于手动安装插件。典型的过程是您下载插件并将该存档解压缩到 dropins 目录。
The plugins directory on the other hand is reserved for Eclipse's updater. You should not mess with it manually. Eclipse will store all plugins you install using "Help"->"Software Updates" or "Help"->"Install new software" (depending on your Eclipse version).
另一方面,插件目录是为 Eclipse 的更新程序保留的。你不应该手动弄乱它。Eclipse 将存储您使用“帮助”->“软件更新”或“帮助”->“安装新软件”(取决于您的 Eclipse 版本)安装的所有插件。