我有一個category.xml文件。我正在將功能導出爲可部署的功能。我已經檢查了'categorize repository'框並給出了category.xml文件的路徑。然後我導出到一個目錄。Eclipse PDE:導出可部署功能時應該對分類庫做些什麼?
據我所知,這對結果沒有影響。我在使用category.xml中的信息的目錄中看不到任何內容。將Eclipse指向該目錄可讓我安裝作爲該功能一部分的插件,但如果我取消選中「按類別分組」項,則會看到「沒有分類的項目」。
我錯過了什麼?我還需要做什麼來啓用類別信息才能導出到目錄中?
[更新:從佐爾坦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的錯誤:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=321341
https://bugs.eclipse.org/bugs/show_bug.cgi?id=359683
我試過evething不起作用..你是什麼意思關於名稱propery?你添加它manualy? –