com.sun.tools.ws.ant
Class Apt

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by com.sun.tools.ws.ant.Apt

public class Apt
extends org.apache.tools.ant.Task

apt task for use with the JAXWS project.


Nested Class Summary
static class Apt.Jvmarg
           
static class Apt.Option
           
 
Field Summary
protected  org.apache.tools.ant.types.Path bootclassPath
          -bootclasspath option: override location of bootstrap class files
protected  org.apache.tools.ant.types.Path compileClasspath
          -classpath option
protected  boolean debug
          -g option: debugging info
protected  String debugLevel
          debug level
protected  boolean deprecation
          -deprecation option: output source locations where deprecated APIs are used
protected  String encoding
          -encoding option: character encoding used by the source files
protected  String endorseddirs
          -endorseddirs option: override location of endorsed standards path
protected  String extdirs
          -extdirs option: override location of installed extensions
protected  boolean fork
          -fork option:
protected  List<Apt.Jvmarg> jvmargs
          -J option: Pass directly to the runtime
protected  boolean nowarn
          -nowarn option: generate no warnings
protected  List<Apt.Option> options
          -A option
protected  List<org.apache.tools.ant.types.FileSet> sourceFileset
           
protected  org.apache.tools.ant.types.Path sourcePath
          -sourcepath option: Specify where to find input source files
protected  String targetVM
          -target option: generate class files for specific VM version
protected  boolean verbose
          -verbose option: output messages about what the compiler is doing
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
Apt()
           
 
Method Summary
 void addConfiguredSource(org.apache.tools.ant.types.FileSet fileset)
           
 org.apache.tools.ant.types.Path createClasspath()
          Creates a nested classpath element.
 Apt.Jvmarg createJvmarg()
           
 Apt.Option createOption()
           
 void execute()
          Called by the project to let the task do it's work
 org.apache.tools.ant.types.Path getBootclasspath()
           
 org.apache.tools.ant.types.Path getClasspath()
           
 String getDebuglevel()
           
 File getDestdir()
           
 String getEncoding()
           
 String getEndorseddirs()
           
 String getExtdirs()
           
 String getFactory()
           
 File getFactorypath()
           
 List<Apt.Jvmarg> getJvmargs()
           
 List<Apt.Option> getOptions()
           
 File getSourcedestdir()
           
 org.apache.tools.ant.types.Path getSourcepath()
           
 String getTarget()
           
 boolean isDebug()
           
 boolean isDeprecation()
           
 boolean isFork()
           
 boolean isNocompile()
           
 boolean isNowarn()
           
 boolean isPrint()
           
 boolean isVerbose()
           
 boolean isXclassesasdecls()
           
 boolean isXlistannotationtypes()
           
 boolean isXlistdeclarations()
           
 boolean isXprintaptrounds()
           
 boolean isXprintfactoryinfo()
           
(package private)  void prepareSourceList(Set<File> sourceFiles)
           
 void setBootclasspath(org.apache.tools.ant.types.Path bootclassPath)
           
 void setClasspath(org.apache.tools.ant.types.Path classpath)
           
 void setClasspathRef(org.apache.tools.ant.types.Reference r)
          Adds a reference to a CLASSPATH defined elsewhere.
 void setDebug(boolean debug)
           
 void setDebuglevel(String debugLevel)
           
 void setDeprecation(boolean deprecation)
           
 void setDestdir(File base)
           
 void setEncoding(String encoding)
           
 void setEndorseddirs(String endorseddirs)
           
 void setExtdirs(String extdirs)
           
 void setFactory(String factory)
           
 void setFactorypath(File factoryPath)
           
 void setFork(boolean fork)
           
 void setNocompile(boolean noCompile)
           
 void setNowarn(boolean nowarn)
           
 void setPrint(boolean print)
           
 void setSourcedestdir(File sourceBase)
           
 void setSourcepath(org.apache.tools.ant.types.Path sourcePath)
           
 void setTarget(String target)
           
 void setVerbose(boolean verbose)
           
 void setXclassesasdecls(boolean xClassesAsDecls)
           
 void setXlistannotationtypes(boolean xListAnnotationTypes)
           
 void setXlistdeclarations(boolean xListDeclarations)
           
 void setXprintaptrounds(boolean xPrintAptRounds)
           
 void setXprintfactoryinfo(boolean xPrintFactoryInfo)
           
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

compileClasspath

protected org.apache.tools.ant.types.Path compileClasspath
-classpath option


options

protected List<Apt.Option> options
-A option


jvmargs

protected List<Apt.Jvmarg> jvmargs
-J option: Pass directly to the runtime


debug

protected boolean debug
-g option: debugging info


debugLevel

protected String debugLevel
debug level


nowarn

protected boolean nowarn
-nowarn option: generate no warnings


deprecation

protected boolean deprecation
-deprecation option: output source locations where deprecated APIs are used


bootclassPath

protected org.apache.tools.ant.types.Path bootclassPath
-bootclasspath option: override location of bootstrap class files


extdirs

protected String extdirs
-extdirs option: override location of installed extensions


endorseddirs

protected String endorseddirs
-endorseddirs option: override location of endorsed standards path


verbose

protected boolean verbose
-verbose option: output messages about what the compiler is doing


sourcePath

protected org.apache.tools.ant.types.Path sourcePath
-sourcepath option: Specify where to find input source files


encoding

protected String encoding
-encoding option: character encoding used by the source files


targetVM

protected String targetVM
-target option: generate class files for specific VM version


fork

protected boolean fork
-fork option:


sourceFileset

protected List<org.apache.tools.ant.types.FileSet> sourceFileset
Constructor Detail

Apt

public Apt()
Method Detail

getClasspath

public org.apache.tools.ant.types.Path getClasspath()

setClasspath

public void setClasspath(org.apache.tools.ant.types.Path classpath)

createClasspath

public org.apache.tools.ant.types.Path createClasspath()
Creates a nested classpath element.


setClasspathRef

public void setClasspathRef(org.apache.tools.ant.types.Reference r)
Adds a reference to a CLASSPATH defined elsewhere.


getDestdir

public File getDestdir()

setDestdir

public void setDestdir(File base)

setSourcedestdir

public void setSourcedestdir(File sourceBase)

getSourcedestdir

public File getSourcedestdir()

getOptions

public List<Apt.Option> getOptions()

createOption

public Apt.Option createOption()

getJvmargs

public List<Apt.Jvmarg> getJvmargs()

createJvmarg

public Apt.Jvmarg createJvmarg()

isNocompile

public boolean isNocompile()

setNocompile

public void setNocompile(boolean noCompile)

isPrint

public boolean isPrint()

setPrint

public void setPrint(boolean print)

getFactorypath

public File getFactorypath()

setFactorypath

public void setFactorypath(File factoryPath)

getFactory

public String getFactory()

setFactory

public void setFactory(String factory)

isXlistannotationtypes

public boolean isXlistannotationtypes()

setXlistannotationtypes

public void setXlistannotationtypes(boolean xListAnnotationTypes)

isXlistdeclarations

public boolean isXlistdeclarations()

setXlistdeclarations

public void setXlistdeclarations(boolean xListDeclarations)

isXprintaptrounds

public boolean isXprintaptrounds()

setXprintaptrounds

public void setXprintaptrounds(boolean xPrintAptRounds)

isXprintfactoryinfo

public boolean isXprintfactoryinfo()

setXprintfactoryinfo

public void setXprintfactoryinfo(boolean xPrintFactoryInfo)

isXclassesasdecls

public boolean isXclassesasdecls()

setXclassesasdecls

public void setXclassesasdecls(boolean xClassesAsDecls)

isDebug

public boolean isDebug()

setDebug

public void setDebug(boolean debug)

getDebuglevel

public String getDebuglevel()

setDebuglevel

public void setDebuglevel(String debugLevel)

isNowarn

public boolean isNowarn()

setNowarn

public void setNowarn(boolean nowarn)

isDeprecation

public boolean isDeprecation()

setDeprecation

public void setDeprecation(boolean deprecation)

getBootclasspath

public org.apache.tools.ant.types.Path getBootclasspath()

setBootclasspath

public void setBootclasspath(org.apache.tools.ant.types.Path bootclassPath)

getExtdirs

public String getExtdirs()

setExtdirs

public void setExtdirs(String extdirs)

getEndorseddirs

public String getEndorseddirs()

setEndorseddirs

public void setEndorseddirs(String endorseddirs)

isVerbose

public boolean isVerbose()

setVerbose

public void setVerbose(boolean verbose)

getSourcepath

public org.apache.tools.ant.types.Path getSourcepath()

setSourcepath

public void setSourcepath(org.apache.tools.ant.types.Path sourcePath)

getEncoding

public String getEncoding()

setEncoding

public void setEncoding(String encoding)

getTarget

public String getTarget()

setTarget

public void setTarget(String target)

isFork

public boolean isFork()

setFork

public void setFork(boolean fork)

addConfiguredSource

public void addConfiguredSource(org.apache.tools.ant.types.FileSet fileset)

prepareSourceList

void prepareSourceList(Set<File> sourceFiles)
                 throws org.apache.tools.ant.BuildException
Throws:
org.apache.tools.ant.BuildException

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Called by the project to let the task do it's work

Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException