Package com.sun.tools.ws.ant
Class AnnotationProcessingTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.MatchingTask
org.apache.tools.ant.taskdefs.Javac
com.sun.tools.ws.ant.AnnotationProcessingTask
- All Implemented Interfaces:
Cloneable
,org.apache.tools.ant.types.selectors.SelectorContainer
public class AnnotationProcessingTask
extends org.apache.tools.ant.taskdefs.Javac
annotation processing task for use with the JAXWS project.
-
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
execute()
Performs a compile using the Javac externally.Get the sourceDestDir attribute (-s javac parameter) The default value is null.boolean
Get the compile option for the ap compiler.void
setProcOnly
(boolean procOnly) Set the compile option for the ap compiler.void
setSourceDestDir
(File sourceDestDir) Set the sourceDestDir attribute.Methods inherited from class org.apache.tools.ant.taskdefs.Javac
add, compile, createBootclasspath, createClasspath, createCompilerArg, createCompilerClasspath, createExtdirs, createModulepath, createModulesourcepath, createSourcepath, createSrc, createUpgrademodulepath, 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
-
Constructor Details
-
AnnotationProcessingTask
public AnnotationProcessingTask()Default constructor.
-
-
Method Details
-
getSourceDestDir
Get the sourceDestDir attribute (-s javac parameter) The default value is null.- Returns:
- directory where to place generated source files.
-
setSourceDestDir
Set the sourceDestDir attribute. (-s javac parameter)- Parameters:
sourceDestDir
- directory where to place processor generated source files.
-
isProcOnly
public boolean isProcOnly()Get the compile option for the ap compiler. If this is true the "-proc:only" argument will be used.- Returns:
- the value of the compile option.
-
setProcOnly
public void setProcOnly(boolean procOnly) Set the compile option for the ap compiler. Default value is false.- Parameters:
procOnly
- if true set the compile option.
-
checkParameters
protected void checkParameters() throws org.apache.tools.ant.BuildException- Overrides:
checkParameters
in classorg.apache.tools.ant.taskdefs.Javac
- Throws:
org.apache.tools.ant.BuildException
-
execute
public void execute() throws org.apache.tools.ant.BuildExceptionPerforms a compile using the Javac externally.- Overrides:
execute
in classorg.apache.tools.ant.taskdefs.Javac
- Throws:
org.apache.tools.ant.BuildException
- if there is a problem.
-