org.apache.avalon.tools.tasks
Class PluginTask

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.apache.avalon.tools.tasks.ContextualTask
              extended byorg.apache.avalon.tools.tasks.SystemTask
                  extended byorg.apache.avalon.tools.tasks.PluginTask

public class PluginTask
extends SystemTask

Load a plugin.

Version:
$Revision: 1.2 $ $Date: 2004/03/17 10:30:09 $
Author:
Avalon Development Team

Field Summary
 
Fields inherited from class org.apache.avalon.tools.tasks.ContextualTask
MODULE_PROPERTIES, USER_PROPERTIES
 
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
PluginTask()
           
 
Method Summary
 org.apache.tools.ant.BuildListener createBuildListener(Class clazz, org.apache.avalon.tools.tasks.PluginTask.AntLibData data, String uri)
          Create a build listerer using a supplied class.
 void execute()
           
 void setArtifact(String id)
           
 
Methods inherited from class org.apache.avalon.tools.tasks.SystemTask
getHome, setRefid
 
Methods inherited from class org.apache.avalon.tools.tasks.ContextualTask
getContext, getKey, init, isInitialized, loadProperties, mkDir, setupProperties
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
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

PluginTask

public PluginTask()
Method Detail

setArtifact

public void setArtifact(String id)

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Throws:
org.apache.tools.ant.BuildException

createBuildListener

public org.apache.tools.ant.BuildListener createBuildListener(Class clazz,
                                                              org.apache.avalon.tools.tasks.PluginTask.AntLibData data,
                                                              String uri)
                                                       throws org.apache.tools.ant.BuildException
Create a build listerer using a supplied class. The implementation checks the first available constructor arguments and builds a set of arguments based on the arguments supplied to this task.

Parameters:
clazz - the listener class
Returns:
a instance of the class
Throws:
org.apache.tools.ant.BuildException - if the class does not expose a public constructor, or the constructor requires arguments that the method cannot resolve, or if a unexpected instantiation error ooccurs