Ant 內容

org.eclipse.ant.core.antProperties

3.0

允許外掛程式定義 Ant 內容以便使用於 Ant 建置檔案。

<!ELEMENT extension (antProperty*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT antProperty EMPTY>

<!ATTLIST antProperty

name           CDATA #REQUIRED

value          CDATA #IMPLIED

class          CDATA #IMPLIED

headless       (true | false)

eclipseRuntime (true | false) >


下列是 Ant 內容延伸點的範例:

   

<extension point=

"org.eclipse.ant.core.antProperties"

>

<antProperty name=

"eclipse.home"

class=

"org.eclipse.ant.internal.core.AntPropertyValueProvider"

/>

<antProperty name=

"eclipse.running"

value=

"true"

/>

</extension>

class 內容指名的類別必須實作 org.eclipse.ant.core.IAntPropertyProvider 介面。

平台使用這個機制將 Ant 內容 eclipse.home 設為 Eclipse 安裝目錄以及設定 eclipse.running 內容。