Class ApBasedTask

  • All Implemented Interfaces:
    java.lang.Cloneable, org.apache.tools.ant.types.selectors.SelectorContainer
    Direct Known Subclasses:
    SchemaGenBase

    public abstract class ApBasedTask
    extends org.apache.tools.ant.taskdefs.Javac
    Base class for tasks that eventually invoke annotation processing.
    Author:
    Kohsuke Kawaguchi
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.tools.ant.taskdefs.Javac

        org.apache.tools.ant.taskdefs.Javac.ImplementationSpecificArgument
    • Field Summary

      • Fields inherited from class org.apache.tools.ant.taskdefs.Javac

        compileList, failOnError, listFiles
      • Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask

        fileset
      • 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
      ApBasedTask()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected void compile()  
      protected abstract java.lang.String getCompilationMessage()  
      protected abstract java.lang.String getFailedMessage()  
      protected abstract javax.annotation.processing.Processor getProcessor()
      Creates a factory that does the actual job.
      protected abstract void setupCommandlineSwitches​(org.apache.tools.ant.types.Commandline cmd)
      Implemented by the derived class to set up command line switches passed to annotation processing.
      • Methods inherited from class org.apache.tools.ant.taskdefs.Javac

        add, checkParameters, createBootclasspath, createClasspath, createCompilerArg, createCompilerClasspath, createExtdirs, createModulepath, createModulesourcepath, createSourcepath, createSrc, createUpgrademodulepath, execute, getBootclasspath, getClasspath, getCompiler, getCompilerVersion, getCurrentCompilerArgs, getDebug, getDebugLevel, getDepend, getDeprecation, getDestdir, getEncoding, getExecutable, getExtdirs, getFailonerror, getFileList, getIncludeantruntime, getIncludejavaruntime, getJavacExecutable, getListfiles, getMemoryInitialSize, getMemoryMaximumSize, getModulepath, getModulesourcepath, getNativeHeaderDir, getNowarn, getOptimize, getRelease, getSource, getSourcepath, getSrcdir, getSystemJavac, getTarget, getTaskSuccess, getTempdir, getUpgrademodulepath, getVerbose, isForkedJavac, isIncludeDestClasses, isJdkCompiler, recreateSrc, resetFileLists, scanDir, setBootclasspath, setBootClasspathRef, setClasspath, setClasspathRef, setCompiler, setCreateMissingPackageInfoClass, setDebug, setDebugLevel, setDepend, setDeprecation, setDestdir, setEncoding, setErrorProperty, setExecutable, setExtdirs, setFailonerror, setFork, setIncludeantruntime, setIncludeDestClasses, setIncludejavaruntime, setListfiles, setMemoryInitialSize, setMemoryMaximumSize, setModulepath, setModulepathRef, setModulesourcepath, setModulesourcepathRef, setNativeHeaderDir, setNowarn, setOptimize, setProceed, setRelease, setSource, setSourcepath, setSourcepathRef, setSrcdir, setTarget, setTempdir, setUpdatedProperty, setUpgrademodulepath, setUpgrademodulepathRef, setVerbose
      • Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask

        add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems
      • 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
      • Methods inherited from class java.lang.Object

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

      • ApBasedTask

        public ApBasedTask()
    • Method Detail

      • setupCommandlineSwitches

        protected abstract void setupCommandlineSwitches​(org.apache.tools.ant.types.Commandline cmd)
        Implemented by the derived class to set up command line switches passed to annotation processing.
      • getProcessor

        protected abstract javax.annotation.processing.Processor getProcessor()
        Creates a factory that does the actual job.
      • compile

        protected void compile()
        Overrides:
        compile in class org.apache.tools.ant.taskdefs.Javac
      • getCompilationMessage

        protected abstract java.lang.String getCompilationMessage()
      • getFailedMessage

        protected abstract java.lang.String getFailedMessage()