com.sun.tools.ws.ant
Class AnnotationProcessingTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.MatchingTask
              extended by org.apache.tools.ant.taskdefs.Javac
                  extended by 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
AnnotationProcessingTask()
           
 
Method Summary
protected  void checkParameters()
           
 void execute()
          Performs a compile using the Javac externally.
 File getSourceDestDir()
          Get the sourceDestDir attribute (-s javac parameter) The default value is null.
 boolean isProcOnly()
          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
compile, createBootclasspath, createClasspath, createCompilerArg, createExtdirs, createSourcepath, createSrc, getBootclasspath, getClasspath, getCompiler, getCompilerVersion, getCurrentCompilerArgs, getDebug, getDebugLevel, getDepend, getDeprecation, getDestdir, getEncoding, getExecutable, getExtdirs, getFailonerror, getFileList, getIncludeantruntime, getIncludejavaruntime, getJavacExecutable, getListfiles, getMemoryInitialSize, getMemoryMaximumSize, getNowarn, getOptimize, getSource, getSourcepath, getSrcdir, getSystemJavac, getTarget, getTempdir, getVerbose, isForkedJavac, isJdkCompiler, recreateSrc, resetFileLists, scanDir, setBootclasspath, setBootClasspathRef, setClasspath, setClasspathRef, setCompiler, setDebug, setDebugLevel, setDepend, setDeprecation, setDestdir, setEncoding, setExecutable, setExtdirs, setFailonerror, setFork, setIncludeantruntime, setIncludejavaruntime, setListfiles, setMemoryInitialSize, setMemoryMaximumSize, setNowarn, setOptimize, setProceed, setSource, setSourcepath, setSourcepathRef, setSrcdir, setTarget, setTempdir, 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

AnnotationProcessingTask

public AnnotationProcessingTask()
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:
checkParameters in class org.apache.tools.ant.taskdefs.Javac
Throws:
org.apache.tools.ant.BuildException

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Performs a compile using the Javac externally.

Overrides:
execute in class org.apache.tools.ant.taskdefs.Javac
Throws:
org.apache.tools.ant.BuildException - if there is a problem.


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.