com.sun.tools.ws.ant
Class AnnotationProcessingTask

java.lang.Object
  extended by Javac
      extended by com.sun.tools.ws.ant.AnnotationProcessingTask

public class AnnotationProcessingTask
extends Javac

annotation processing task for use with the JAXWS 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 java.lang.Object
clone, 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 BuildException
Throws:
BuildException

execute

public void execute()
             throws BuildException
Performs a compile using the Javac externally.

Throws:
BuildException - if there is a problem.


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.