Ant Properties

org.eclipse.ant.core.antProperties

3.0

Allows plug-ins to define Ant properties for use in Ant build files.

<!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) >


The following is an example of an Ant properties extension point:

   

<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>

The class named in the class property must implement the org.eclipse.ant.core.IAntPropertyProvider interface.

The platform uses this mechanism to set the Ant property eclipse.home to the Eclipse installation directory and to set the eclipse.running property.