Class WrapperTask

  • All Implemented Interfaces:
    Cloneable, org.apache.tools.ant.DynamicAttribute, org.apache.tools.ant.DynamicConfigurator, org.apache.tools.ant.DynamicElement
    Direct Known Subclasses:
    WsGen, WsImport

    public abstract class WrapperTask
    extends ProtectedTask
    Wrapper task to launch real implementations of the task in a classloader that can work even in JavaSE 6.
    Author:
    Kohsuke Kawaguchi
    • Field Summary

      • Fields inherited from class org.apache.tools.ant.Task

        target, taskName, taskType, wrapper
      • Fields inherited from class org.apache.tools.ant.ProjectComponent

        description, location, project
    • Constructor Summary

      Constructors 
      Constructor Description
      WrapperTask()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected ClassLoader createClassLoader()
      Creates a protective class loader that will host the actual task.
      protected String getCoreClassName()
      Returns the name of the class that extends Task.This class will be loaded int the protected classloader.
      void setDynamicAttribute​(String name, String value)  
      • Methods inherited from class org.apache.tools.ant.Task

        bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
      • Methods inherited from class org.apache.tools.ant.ProjectComponent

        clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject