Package com.sun.tools.ws.ant
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
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, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ClassLoaderCreates a protective class loader that will host the actual task.protected StringReturns the name of the class that extendsTask.This class will be loaded int the protected classloader.voidsetDynamicAttribute(String name, String value) Methods inherited from class com.sun.istack.tools.ProtectedTask
createDynamicElement, executeMethods 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, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Constructor Details
-
WrapperTask
public WrapperTask()
-
-
Method Details
-
getCoreClassName
Description copied from class:ProtectedTaskReturns the name of the class that extendsTask.This class will be loaded int the protected classloader.- Specified by:
getCoreClassNamein classProtectedTask- Returns:
- Task class name
-
setDynamicAttribute
public void setDynamicAttribute(String name, String value) throws org.apache.tools.ant.BuildException - Specified by:
setDynamicAttributein interfaceorg.apache.tools.ant.DynamicAttribute- Overrides:
setDynamicAttributein classProtectedTask- Throws:
org.apache.tools.ant.BuildException
-
createClassLoader
Description copied from class:ProtectedTaskCreates a protective class loader that will host the actual task.- Specified by:
createClassLoaderin classProtectedTask- Returns:
- ClassLoader use d for task execution
- Throws:
ClassNotFoundException- if required APIs are not foundIOException- if error happens
-