我有一个 category.xml 文件。我正在将功能导出为可部署功能。我检查了“分类存储库”框并为其提供了 category.xml 文件的路径。然后我导出到一个目录。
据我所知,这对结果没有影响。我在使用 category.xml 信息的目录中看不到任何内容。将 Eclipse 指向该目录可以让我安装作为该功能一部分的插件,但我会看到“没有分类项目”,除非我取消选中“按类别分组项目”。
我错过了什么?我还需要做什么才能使类别信息最终出现在导出的目录中?
[更新:Zoltán Ujhelyi 的解决方案]
我没有在该类别中提供足够的信息。我的新 category.xml 文件如下所示:
<?xml version="1.0" encoding="UTF-8"?>
<site>
<feature url="features/com.restphone.androidproguardscala.feature_0.0.8.jar" id="com.restphone.androidproguardscala.feature" version="0.0.8">
<category name="com.restphone.androidproguardscala.feature"/>
</feature>
<category-def name="com.restphone.androidproguardscala.feature" label="Android Proguard Scala cache system"/>
</site>
最终将这一行放在 content.xml 中:
<property name='org.eclipse.equinox.p2.name' value='Android Proguard Scala cache system'/>
请注意,导出后,category.xml 位于 category.jar 中,因此 grep 不会找到文本(它在 category.jar 中被压缩)。
另请注意,有一个影响类别的突出 Eclipse 错误: