如果要建置外掛程式、軟體組或片段,PDE 建置會要求您建立一項列出了所有要建置之元素的特性。 在此情況下,這個特性只用來驅動建置,不會出現在最終的保存檔中,也不會強迫您使用更新網站。
用來驅動外掛程式建置的特性是一項標準特性。
它的不同之處在於其 build.properties 檔不含 bin.includes 內容。其可能會自動產生一個特性,來包含您要建置的外掛程式。這可讓您建置外掛程式,但不需要維護特性。
請參閱 eclipse.generateFeature 作業和自訂遠端控制建置頁面。
範例:
build.properties: topLevelElementId = acme.build.feature
customTargets.xml :
<target name="preSetup">
<eclipse.generateFeature
featureId="acme.build.feature"
buildDirectory="${buildDirectory}"
baseLocation="${baseLocation}"
productFile="${product}"
verify="false"
pluginPath="${pluginPath}"
configInfo="${configs}"
pluginList="acme.plugin.A,acme.plugin.B"
featureList="${featureList}"
includeLaunchers="false"
/>
</target>
建立了驅動建置的特性之後,請遵循建置特性的指示。