Package com.sun.tools.xjc
Class XJCTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.sun.istack.tools.ProtectedTask
com.sun.tools.xjc.XJCTask
- All Implemented Interfaces:
Cloneable
,org.apache.tools.ant.DynamicAttribute
,org.apache.tools.ant.DynamicConfigurator
,org.apache.tools.ant.DynamicElement
Captures the properties and then delegate to XJC1 or XJC2 by looking at
the source attribute.
- Author:
- Bhakti Mehta
-
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected ClassLoader
Creates a protective class loader that will host the actual task.protected String
Returns the name of the class that extendsTask
.This class will be loaded int the protected classloader.void
The version of the compiler to runMethods inherited from class com.sun.istack.tools.ProtectedTask
createDynamicElement, execute, setDynamicAttribute
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
-
Constructor Details
-
XJCTask
public XJCTask()Default constructor.
-
-
Method Details
-
setSource
The version of the compiler to run -
createClassLoader
Description copied from class:ProtectedTask
Creates a protective class loader that will host the actual task.- Specified by:
createClassLoader
in classProtectedTask
- Returns:
- ClassLoader use d for task execution
- Throws:
ClassNotFoundException
- if required APIs are not foundIOException
- if error happens
-
getCoreClassName
Description copied from class:ProtectedTask
Returns the name of the class that extendsTask
.This class will be loaded int the protected classloader.- Specified by:
getCoreClassName
in classProtectedTask
- Returns:
- Task class name
-