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 属性。