| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| <HEAD><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
| <STYLE type="text/css"> |
| div.dtd-fragment { |
| width: 100%; |
| border: none; |
| background-color: #eee; |
| } |
| </STYLE> |
| </HEAD> |
| <HTML> |
| <BODY> |
| <H1><CENTER>Ant Types</CENTER></H1> |
| <b><i>Identifier: </i></b>org.eclipse.ant.core.antTypes<p> |
| <b><i>Description: </i></b>Allows plug-ins to define arbitrary Ant datatypes for |
| use by the Ant infrastructure. The standard Ant |
| infrastructure allows for the addition of arbitrary |
| datatypes. Unfortunately, it is unlikely that the |
| Ant Core plug-in would have the classes required |
| by these datatypes 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 datatype name onto a class. |
| The Ant plug-in can then request that the declaring |
| plug-in load the specified class.<p><b><i>Configuration Markup:</i></b><p> |
| <p><samp><font color="#800000"> <!ELEMENT <a name="e.extension">extension</a> (<a href="#e.antType">antType</a>*)></font></samp> |
| <br><br><samp><font color="#800000"> <!ATTLIST extension</samp> |
| <br><samp> point CDATA #REQUIRED</samp> |
| <br><samp> id CDATA #IMPLIED</samp> |
| <br><samp> name CDATA #IMPLIED</samp> |
| <br><samp> ></font></samp> |
| <ul> |
| <li><b>point</b> - a fully qualified identifier of the target extension point</li> |
| <li><b>id</b> - an optional identifier of the extension instance</li> |
| <li><b>name</b> - an optional name of the extension instance</li> |
| </ul> |
| <p><samp><font color="#800000"> <!ELEMENT <a name="e.antType">antType</a> EMPTY></font></samp> |
| <br><br><samp><font color="#800000"> <!ATTLIST antType</samp> |
| <br><samp> name CDATA #REQUIRED</samp> |
| <br><samp> class CDATA #REQUIRED</samp> |
| <br><samp> library CDATA #REQUIRED</samp> |
| <br><samp> headless CDATA #IMPLIED</samp> |
| <br><samp> ></font></samp> |
| <ul> |
| <li><b>name</b> - name of the type to be defined</li> |
| <li><b>class</b> - the fully qualified name of a Java class implementing |
| the datatype. Generally this class must be a subclass of |
| <samp>org.apache.tools.ant.types.DataType</samp>.</li> |
| <li><b>library</b> - a path relative to the plug-in install location |
| for the library containing the type.</li> |
| <li><b>headless</b> - indicates whether this type is suitable for use in a "headless" Ant environment. If running headless and the attribute is "false", |
| the type will not be loaded or defined. As well, the plugin class loader will not be added as a parent classloader to the Ant classloader. |
| The implied value is true, when not specified.</li> |
| </ul> |
| <b><i>Examples: </i></b>The following is an example of an Ant types extension point: |
| <p> |
| <pre> |
| <font color="#000080"><extension point=<font color="#008000">"org.eclipse.ant.core.antTypes"</font>></font> |
| <font color="#000080"><antType name=<font color="#008000">"coolType"</font> class=<font color="#008000">"com.example.CoolType"</font>/></font> |
| <font color="#000080"></extension></font> |
| </pre> |
| </p><p> |
| <font size="-1" color="#336699"> |
| <a href="hglegal2003.htm"><img SRC="ngibmcpy2003.gif" ALT="Copyright IBM Corp. 2000, 2003. All Rights Reserved." BORDER=0 height=12 width=195></a><p> |
| </font> |
| </BODY> |
| </HTML> |