AntObjects

Identifier: org.eclipse.ant.core.antObjects

Description: Allows plug-ins to define arbitrary classes for use by the Ant infrastructure.  For example, in the case of a Javac compiler adapters, the compiler adapter factory can be supplied, via a property setting, with the name of an adapter class to use.  Unfortunately, it is unlikely that the Ant Core plug-in would have this class on its classpath (or that of any of its prerequisites).  To address this, clients should define an extension which plugs into this extension-point and maps a name onto a class.  The Ant plug-in can then request that the declaring plug-in load the specified class.

Configuration Markup: 

   <!ELEMENT antObject EMPTY>
   <!ATTLIST antObject
      name           CDATA #REQUIRED
      class          CDATA #REQUIRED
   >

Examples: The following is an example of an object declaration:

   <extension point="org.eclipse.ant.core.antObject">
      <antObject name="com.example.Foo" class="com.example.Foo"/>
   </extension>

API Information: The objects declared via this extension-point are accessible though the following API:

   org.eclipse.core.ant.AntPlugin.getObjectExtensions

Supplied Implementation: The platform itself does not supply any object extension.

Copyright IBM Corp. 2000, 2001.  All Rights Reserved.