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

2022-01-16 00:00:00 eclipse-plugin java eclipse p2 equinox

像 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.

相关文章