Eclipse p2:category.xml 和 site.xml 之间的区别

Eclipse p2 : Difference between category.xml and site.xml(Eclipse p2:category.xml 和 site.xml 之间的区别)

本文介绍了Eclipse p2:category.xml 和 site.xml 之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

像 eclipse.publish.featuresAndBundles 这样的 p2 存储库创建 ant 任务似乎需要一个指定类别信息的 site.xml 或 category.xml 文件.

p2 repository creation ant tasks like eclipse.publish.featuresAndBundles seem to take a site.xml or category.xml file which specifies the category information.

我看到 eclipse 生成的 site.xml 和 category.xml 的内容在标签上都是完全相同的.

I see that the contents of site.xml and category.xml that eclipse generates are exactly the same right down to the tags.

那么这两者有什么区别呢?

So what is the difference between the two?

编辑 - 明确:
除了文件名之外,category.xml 中有哪些与 site.xml 不同的加法/减法?

Edit - To be clear :
What additions/subtractions are present in category.xml that differentiate it from a site.xml apart from the filenames?

推荐答案

主要区别在于site.xml提供了更新站点和其他repo信息可以结构化的信息,它是更新站点的一部分,但从 3.4 开始,它已被替换为 content.xml 和 artifacts.xml

The main difference between the to that the site.xml provides information where the update site and other repo information can be structured, and it is part of the update site, but as of 3.4 it has been replaced with content.xml and artifacts.xml

类别中是一个描述类别的 XML 文件,它可以在 p2 构建期间使用并生成在帮助">安装新软件"对话框中看到的类别.但是对于 p2,categories.xml 可以替换为包含您期望的信息的复合 repo 中的子 repo.

In the categories is an XML file describing categories, it can be consumed during a p2 build and produces the categories seen in the Help>Install New Software dialog. But again with p2, categories.xml can be replaced with a child repo in a composite repo containing the information you would expect.

这篇关于Eclipse p2:category.xml 和 site.xml 之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:Eclipse p2:category.xml 和 site.xml 之间的区别

基础教程推荐