com.sun.tools.ws.ant
Class Apt

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

public class Apt
extends Task

apt task for use with the JAXWS project.


Nested Class Summary
static class Apt.Jvmarg
           
static class Apt.Option
           
 
Field Summary
protected  Path bootclassPath
          -bootclasspath option: override location of bootstrap class files
protected  Path compileClasspath
          -classpath option
protected  boolean debug
          -g option: debugging info
protected  java.lang.String debugLevel
          debug level
protected  boolean deprecation
          -deprecation option: output source locations where deprecated APIs are used
protected  java.lang.String encoding
          -encoding option: character encoding used by the source files
protected  java.lang.String endorseddirs
          -endorseddirs option: override location of endorsed standards path
protected  java.lang.String extdirs
          -extdirs option: override location of installed extensions
protected  boolean fork
          -fork option:
protected  java.util.List<Apt.Jvmarg> jvmargs
          -J option: Pass directly to the runtime
protected  boolean nowarn
          -nowarn option: generate no warnings
protected  java.util.List<Apt.Option> options
          -A option
protected  java.util.List<FileSet> sourceFileset
           
protected  Path sourcePath
          -sourcepath option: Specify where to find input source files
protected  java.lang.String targetVM
          -target option: generate class files for specific VM version
protected  boolean verbose
          -verbose option: output messages about what the compiler is doing
 
Constructor Summary
Apt()
           
 
Method Summary
 void addConfiguredSource(FileSet fileset)
           
 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
 Path getBootclasspath()
           
 Path getClasspath()
           
 java.lang.String getDebuglevel()
           
 java.io.File getDestdir()
           
 java.lang.String getEncoding()
           
 java.lang.String getEndorseddirs()
           
 java.lang.String getExtdirs()
           
 java.lang.String getFactory()
           
 java.io.File getFactorypath()
           
 java.util.List<Apt.Jvmarg> getJvmargs()
           
 java.util.List<Apt.Option> getOptions()
           
 java.io.File getSourcedestdir()
           
 Path getSourcepath()
           
 java.lang.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()
           
 void setBootclasspath(Path bootclassPath)
           
 void setClasspath(Path classpath)
           
 void setClasspathRef(Reference r)
          Adds a reference to a CLASSPATH defined elsewhere.
 void setDebug(boolean debug)
           
 void setDebuglevel(java.lang.String debugLevel)
           
 void setDeprecation(boolean deprecation)
           
 void setDestdir(java.io.File base)
           
 void setEncoding(java.lang.String encoding)
           
 void setEndorseddirs(java.lang.String endorseddirs)
           
 void setExtdirs(java.lang.String extdirs)
           
 void setFactory(java.lang.String factory)
           
 void setFactorypath(java.io.File factoryPath)
           
 void setFork(boolean fork)
           
 void setNocompile(boolean noCompile)
           
 void setNowarn(boolean nowarn)
           
 void setPrint(boolean print)
           
 void setSourcedestdir(java.io.File sourceBase)
           
 void setSourcepath(Path sourcePath)
           
 void setTarget(java.lang.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

compileClasspath

protected Path compileClasspath
-classpath option


options

protected java.util.List<Apt.Option> options
-A option


jvmargs

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


debug

protected boolean debug
-g option: debugging info


debugLevel

protected java.lang.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 Path bootclassPath
-bootclasspath option: override location of bootstrap class files


extdirs

protected java.lang.String extdirs
-extdirs option: override location of installed extensions


endorseddirs

protected java.lang.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 Path sourcePath
-sourcepath option: Specify where to find input source files


encoding

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


targetVM

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


fork

protected boolean fork
-fork option:


sourceFileset

protected java.util.List<FileSet> sourceFileset
Constructor Detail

Apt

public Apt()
Method Detail

getClasspath

public Path getClasspath()

setClasspath

public void setClasspath(Path classpath)

createClasspath

public Path createClasspath()
Creates a nested classpath element.


setClasspathRef

public void setClasspathRef(Reference r)
Adds a reference to a CLASSPATH defined elsewhere.


getDestdir

public java.io.File getDestdir()

setDestdir

public void setDestdir(java.io.File base)

setSourcedestdir

public void setSourcedestdir(java.io.File sourceBase)

getSourcedestdir

public java.io.File getSourcedestdir()

getOptions

public java.util.List<Apt.Option> getOptions()

createOption

public Apt.Option createOption()

getJvmargs

public java.util.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 java.io.File getFactorypath()

setFactorypath

public void setFactorypath(java.io.File factoryPath)

getFactory

public java.lang.String getFactory()

setFactory

public void setFactory(java.lang.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 java.lang.String getDebuglevel()

setDebuglevel

public void setDebuglevel(java.lang.String debugLevel)

isNowarn

public boolean isNowarn()

setNowarn

public void setNowarn(boolean nowarn)

isDeprecation

public boolean isDeprecation()

setDeprecation

public void setDeprecation(boolean deprecation)

getBootclasspath

public Path getBootclasspath()

setBootclasspath

public void setBootclasspath(Path bootclassPath)

getExtdirs

public java.lang.String getExtdirs()

setExtdirs

public void setExtdirs(java.lang.String extdirs)

getEndorseddirs

public java.lang.String getEndorseddirs()

setEndorseddirs

public void setEndorseddirs(java.lang.String endorseddirs)

isVerbose

public boolean isVerbose()

setVerbose

public void setVerbose(boolean verbose)

getSourcepath

public Path getSourcepath()

setSourcepath

public void setSourcepath(Path sourcePath)

getEncoding

public java.lang.String getEncoding()

setEncoding

public void setEncoding(java.lang.String encoding)

getTarget

public java.lang.String getTarget()

setTarget

public void setTarget(java.lang.String target)

isFork

public boolean isFork()

setFork

public void setFork(boolean fork)

addConfiguredSource

public void addConfiguredSource(FileSet fileset)

execute

public void execute()
             throws BuildException
Called by the project to let the task do it's work

Throws:
BuildException


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