Class WrapperTask

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.sun.istack.tools.ProtectedTask
com.sun.tools.ws.ant.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 com.sun.istack.tools.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
    Modifier
    Constructor
    Description
    protected
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected ClassLoader
     
    protected String
     
    void
     

    Methods inherited from class com.sun.istack.tools.ProtectedTask

    createDynamicElement, execute

    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

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WrapperTask

      protected WrapperTask()
      Default constructor.
  • Method Details

    • getCoreClassName

      protected String getCoreClassName()
      Specified by:
      getCoreClassName in class com.sun.istack.tools.ProtectedTask
    • setDynamicAttribute

      public void setDynamicAttribute(String name, String value) throws org.apache.tools.ant.BuildException
      Specified by:
      setDynamicAttribute in interface org.apache.tools.ant.DynamicAttribute
      Overrides:
      setDynamicAttribute in class com.sun.istack.tools.ProtectedTask
      Throws:
      org.apache.tools.ant.BuildException
    • createClassLoader

      protected ClassLoader createClassLoader() throws ClassNotFoundException, IOException
      Specified by:
      createClassLoader in class com.sun.istack.tools.ProtectedTask
      Throws:
      ClassNotFoundException
      IOException