Class XJCTask

  • All Implemented Interfaces:
    java.lang.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
    • 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
      XJCTask()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.ClassLoader createClassLoader()  
      protected java.lang.String getCoreClassName()  
      void setSource​(java.lang.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
      • 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 Detail

      • XJCTask

        public XJCTask()
    • Method Detail

      • setSource

        public void setSource​(java.lang.String version)
        The version of the compiler to run
      • createClassLoader

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

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