com.sun.tools.ws.ant
Class Ap

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

public class Ap
extends Javac

annotation processing task for use with the JAXWS project.


Constructor Summary
Ap()
           
 
Method Summary
protected  void checkParameters()
           
 void execute()
          Performs a compile using the Javac externally.
 String getCompiler()
          Get the compiler class name.
 String getProcessor()
          Get the processor attribute.
 File getS()
          Get the s attribute.
 boolean isProcOnly()
          Get the compile option for the ap compiler.
 void setProcOnly(boolean procOnly)
          Set the compile option for the ap compiler.
 void setS(File s)
          Set the s attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ap

public Ap()
Method Detail

getS

public File getS()
Get the s attribute. The default value is null.

Returns:
directory where to place generated source files.

setS

public void setS(File s)
Set the s attribute.

Parameters:
s - directory where to place processor generated source files.

getCompiler

public String getCompiler()
Get the compiler class name.

Returns:
the compiler class name.

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.

getProcessor

public String getProcessor()
Get the processor attribute. The default value is WebServiceAp.

Returns:
name of Annotation Processor

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-2011 Oracle Corporation. All Rights Reserved.