功能与plugin.xml的区别? [英] Difference between feature and plugin.xml?

查看:153
本文介绍了功能与plugin.xml的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在eclipse插件开发中有一些基本的问题,任何人都可以澄清以下问题,



我们什么时候需要在我们的插件开发中添加功能? / p>

功能和plugin.xml有什么区别?



Regards
Mathan

解决方案

这个线程



  • 一个插件是日食工作单位。一个OSGi软件包提供一个类路径,可以通过扩展来实现eclipse。


  • 一个分片指向一个主机插件,它提供的任何东西(classpath,等等)被吸到主机插件中。一个片段也是一个更专业的OSGi软件包。


  • 一个功能表示插件的版本集合,并且是用于eclipse中的配置管理。它们可以手动部署或通过更新管理器进行部署。如果要通过更新管理器部署,那么您需要使用功能来表示您的插件。



所以如果你想通过更新管理器管理你的插件或插件,一个功能是有序的。



你可以在Eclipse帮助中找到更多:






功能不包含任何代码。

它们只描述一组插件,为功能提供功能和有关如何更新的功能。

功能被包装在一个功能档案文件中,并使用feature.xml 描述的







虽然功能组织为分发和更新产品的目的插件是为了促进产品团队中产品功能的开发。开发团队确定何时将程序功能加入到单独的插件中。

插件被封装在插件归档文件中,并使用插件清单文件 plugin.xml中



I have some basic questions in eclipse plugin development, can anyone give clarification of the following questions,

When should we have to add features in our plugin development ?

What is the difference between feature and plugin.xml ?

Regards Mathan

解决方案

As mentioned in this thread:

  • A plugin is the eclipse "unit of work". An OSGi bundle that supplies a classpath and can contribute to eclipse through extensions.

  • A fragment points to a host plugin, and anything it provides (classpath, extensions, etc) are "sucked" into the host plugin. A fragment is also a more specialized OSGi bundle.

  • A feature represents a versioned collection of plugins, and is used for configuration management in eclipse. They can be deployed manually or through the update manager. If you want to deploy through the update manager, then you need to use features to represent your plugins.

So if you want to manage your plugin or plugins through the update manager, a feature is in order.

You can find more in the Eclipse Help:

Features do not contain any code.
They merely describe a set of plug-ins that provide the function for the feature and information about how to update it.
Features are packaged in a feature archive file and described using a feature manifest file, feature.xml.

While features are organized for the purposes of distributing and updating products, plug-ins are organized to facilitate the development of the product function among the product team. The development team determines when to carve up program function into a separate plug-in.
Plug-ins are packaged in a plug-in archive file and described using a plug-in manifest file, plugin.xml.

这篇关于功能与plugin.xml的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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