Class AntlibDefinition

All Implemented Interfaces:
Direct Known Subclasses:
AttributeNamespaceDef, DefBase, MacroDef, PreSetDef

public class AntlibDefinition extends Task
Base class for tasks that that can be used in antlibs. For handling uri and class loading.
Ant 1.6
  • Constructor Details

    • AntlibDefinition

      public AntlibDefinition()
  • Method Details

    • setURI

      public void setURI(String uri) throws BuildException
      The URI for this definition. If the URI is "", (this is the default uri) the uri will be set to "". URIs that start with "ant:" are reserved and are not allowed in this context.
      uri - the namespace URI
      BuildException - if a reserved URI is used
    • getURI

      public String getURI()
      The URI for this definition.
      The URI for this definition.
    • setAntlibClassLoader

      public void setAntlibClassLoader(ClassLoader classLoader)
      Set the class loader of the loading object
      classLoader - a ClassLoader value
    • getAntlibClassLoader

      public ClassLoader getAntlibClassLoader()
      The current antlib classloader
      the antlib classloader for the definition, this is null if the definition is not used in an antlib.