org.apache.tools.ant
Class UnknownElement

java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.Task
              |
              +--org.apache.tools.ant.UnknownElement

public class UnknownElement
extends Task

Wrapper class that holds all information necessary to create a task that did not exist when Ant started.


Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
UnknownElement(java.lang.String elementName)
           
 
Method Summary
 void addChild(UnknownElement child)
           
 void execute()
          Called when the real task has been configured for the first time.
 java.lang.String getTag()
          return the corresponding XML tag.
 java.lang.String getTaskName()
          Get the name to use in logging messages.
protected  void handleChildren(java.lang.Object parent, RuntimeConfigurable parentWrapper)
           
protected  Task makeTask(UnknownElement ue, RuntimeConfigurable w)
          Create a named task and configure it up to the init() stage.
 void maybeConfigure()
          Configure this task - if it hasn't been done already.
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, handleErrorOutput, handleOutput, init, log, log, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnknownElement

public UnknownElement(java.lang.String elementName)
Method Detail

getTag

public java.lang.String getTag()
return the corresponding XML tag.

maybeConfigure

public void maybeConfigure()
                    throws BuildException
Description copied from class: Task
Configure this task - if it hasn't been done already.
Overrides:
maybeConfigure in class Task

execute

public void execute()
Called when the real task has been configured for the first time.
Overrides:
execute in class Task
Following copied from class: org.apache.tools.ant.Task
Throws:
BuildException - if someting goes wrong with the build

addChild

public void addChild(UnknownElement child)

handleChildren

protected void handleChildren(java.lang.Object parent,
                              RuntimeConfigurable parentWrapper)
                       throws BuildException

makeTask

protected Task makeTask(UnknownElement ue,
                        RuntimeConfigurable w)
Create a named task and configure it up to the init() stage.

getTaskName

public java.lang.String getTaskName()
Get the name to use in logging messages.
Overrides:
getTaskName in class Task
Returns:
the name to use in logging messages.


Includes only those classes commonly used by task writers. The Ant 1.4.1 distribution includes complete Javadoc for all classes included in Ant, though in most cases these are not intended as APIs.