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.Javacannotation processing task for use with the JAXWS project.
-
-
Constructor Summary
Constructors Constructor Description AnnotationProcessingTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckParameters()voidexecute()Performs a compile using the Javac externally.FilegetSourceDestDir()Get the sourceDestDir attribute (-s javac parameter) The default value is null.booleanisProcOnly()Get the compile option for the ap compiler.voidsetProcOnly(boolean procOnly)Set the compile option for the ap compiler.voidsetSourceDestDir(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
-
-
-
-
Method Detail
-
getSourceDestDir
public File getSourceDestDir()
Get the sourceDestDir attribute (-s javac parameter) The default value is null.- Returns:
- directory where to place generated source files.
-
setSourceDestDir
public void setSourceDestDir(File sourceDestDir)
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:
checkParametersin 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:
executein classorg.apache.tools.ant.taskdefs.Javac- Throws:
org.apache.tools.ant.BuildException- if there is a problem.
-
-