0

当我有一个 Eclipse 更新站点项目时,会创建一个 site.xml 文件,如下所示:

<?xml version="1.0" encoding="UTF-8"?>
<site>
   <feature url="features/org.eclipse.egit_1.1.0.201109151100-r.jar" id="org.eclipse.egit" version="1.1.0.201109151100-r"/>
   <feature url="features/org.eclipse.draw2d_3.7.1.v20110830-1143-4607w3122194102254.jar" id="org.eclipse.draw2d" version="3.7.1.v20110830-1143-4607w3122194102254">
      <category name="test_cat1"/>
   </feature>
<category-def name="test_cat1" label="Test Catergory 1">
   <description>
   This be a test
   </description>
</category-def>
</site>

但是如果我有一个现有的更新站点(例如由 B3 聚合器创建),是否有一种简单的方法来生成这个 site.xml 文件?

4

1 回答 1

4

site.xml 文件是已弃用的存储库描述符。它被 artifacts.jar 和 content.jar 取代,并引入了 p2。为了向后兼容,p2 仍然理解仅包含 site.xml 的存储库,并且一些 p2 工具可以将 site.xml 作为输入,但是您不太可能找到相反的任何内容。

于 2012-03-20T15:54:09.307 回答