- 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
public class XJCTask extends com.sun.istack.tools.ProtectedTask
Captures the properties and then delegate to XJC1 or XJC2 by looking at the source attribute.- Author:
- Bhakti Mehta
-
-
Constructor Summary
Constructors Constructor Description XJCTask()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ClassLoader
createClassLoader()
protected String
getCoreClassName()
void
setSource(String version)
The version of the compiler to run-
Methods 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
-
-
-
-
Method Detail
-
setSource
public void setSource(String version)
The version of the compiler to run
-
createClassLoader
protected ClassLoader createClassLoader() throws ClassNotFoundException, IOException
- Specified by:
createClassLoader
in classcom.sun.istack.tools.ProtectedTask
- Throws:
ClassNotFoundException
IOException
-
getCoreClassName
protected String getCoreClassName()
- Specified by:
getCoreClassName
in classcom.sun.istack.tools.ProtectedTask
-
-