com.sun.tools.ws.ant
Class WsGen2

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 com.sun.tools.ws.ant.WsGen2
All Implemented Interfaces:
Cloneable, org.apache.tools.ant.types.selectors.SelectorContainer

public class WsGen2
extends org.apache.tools.ant.taskdefs.MatchingTask

wsgen task for use with the JAXWS project.


Field Summary
protected  org.apache.tools.ant.types.Path compileClasspath
          -classpath option
protected  boolean extension
          -extensions option
protected  boolean verbose
          -verbose option
 
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
WsGen2()
           
 
Method Summary
 org.apache.tools.ant.types.Path createClasspath()
          Creates a nested classpath element.
 org.apache.tools.ant.types.Commandline.Argument createJvmarg()
          Adds a JVM argument.
 void execute()
          Called by the project to let the task do it's work
 org.apache.tools.ant.types.Path getClasspath()
          Gets the classpath.
 org.apache.tools.ant.types.Path getCP()
          Gets the classpath.
 boolean getDebug()
          Gets the debug flag.
 File getDestdir()
          Gets the base directory to output generated class.
 boolean getExtension()
          Gets the "extension" flag.
 boolean getFork()
          Gets the "fork" flag.
 boolean getGenwsdl()
          Gets the genWsdl flag.
 boolean getIncludeantruntime()
          Gets whether or not the ant classpath is to be included in the task's classpath.
 boolean getIncludejavaruntime()
          Gets whether or not the java runtime should be included in this task's classpath.
 boolean getKeep()
          Gets the "keep" flag.
 boolean getOptimize()
          Gets the optimize flag.
 String getPortname()
          Gets the portName.
 String getProtocol()
          Gets the protocol.
 File getResourcedestdir()
          Gets the directory for non-class generated files.
 String getSei()
           
 String getServicename()
          Gets the serviceName.
 File getSourcedestdir()
          Gets the directory to place generated source java files.
 boolean getVerbose()
          Gets the "verbose" flag.
 void setClasspath(org.apache.tools.ant.types.Path classpath)
          Set the classpath to be used for this compilation.
 void setClasspathRef(org.apache.tools.ant.types.Reference r)
          Adds a reference to a CLASSPATH defined elsewhere.
 void setCP(org.apache.tools.ant.types.Path classpath)
          Set the classpath to be used for this compilation.
 void setDebug(boolean debug)
          Sets the debug flag.
 void setDestdir(File base)
          Sets the base directory to output generated class.
 void setExtension(boolean extension)
          Sets the "extension" flag.
 void setFailonerror(boolean value)
          Mostly for our SQE teams and not to be advertized.
 void setFork(boolean fork)
          Sets the "fork" flag.
 void setGenwsdl(boolean genWsdl)
          Sets the genWsdl flag.
 void setIncludeantruntime(boolean include)
          Include ant's own classpath in this task's classpath?
 void setIncludejavaruntime(boolean include)
          Sets whether or not to include the java runtime libraries to this task's classpath.
 void setKeep(boolean keep)
          Sets the "keep" flag.
 void setOptimize(boolean optimize)
          Sets the optimize flag.
 void setPortname(String name)
          Sets the serviceName.
 void setProtocol(String protocol)
          Sets the protocol.
 void setResourcedestdir(File resourceDir)
          Sets the directory for non-class generated files.
 void setSei(String endpointImplementationClass)
           
 void setServicename(String name)
          Sets the serviceName.
 void setSourcedestdir(File sourceBase)
          Sets the directory to place generated source java files.
 void setVerbose(boolean verbose)
          Sets the "verbose" flag.
 
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
 

Field Detail

compileClasspath

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


extension

protected boolean extension
-extensions option


verbose

protected boolean verbose
-verbose option

Constructor Detail

WsGen2

public WsGen2()
Method Detail

getClasspath

public org.apache.tools.ant.types.Path getClasspath()
Gets the classpath.


setClasspath

public void setClasspath(org.apache.tools.ant.types.Path classpath)
Set the classpath to be used for this compilation.


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.


getCP

public org.apache.tools.ant.types.Path getCP()
Gets the classpath.


setCP

public void setCP(org.apache.tools.ant.types.Path classpath)
Set the classpath to be used for this compilation.


getDestdir

public File getDestdir()
Gets the base directory to output generated class.


setDestdir

public void setDestdir(File base)
Sets the base directory to output generated class.


setFailonerror

public void setFailonerror(boolean value)
Mostly for our SQE teams and not to be advertized.


createJvmarg

public org.apache.tools.ant.types.Commandline.Argument createJvmarg()
Adds a JVM argument.

Returns:
JVM argument created

getExtension

public boolean getExtension()
Gets the "extension" flag.


setExtension

public void setExtension(boolean extension)
Sets the "extension" flag.


getKeep

public boolean getKeep()
Gets the "keep" flag.


setKeep

public void setKeep(boolean keep)
Sets the "keep" flag.


getFork

public boolean getFork()
Gets the "fork" flag.


setFork

public void setFork(boolean fork)
Sets the "fork" flag.


getResourcedestdir

public File getResourcedestdir()
Gets the directory for non-class generated files.


setResourcedestdir

public void setResourcedestdir(File resourceDir)
Sets the directory for non-class generated files.


getOptimize

public boolean getOptimize()
Gets the optimize flag.


setOptimize

public void setOptimize(boolean optimize)
Sets the optimize flag.


setSourcedestdir

public void setSourcedestdir(File sourceBase)
Sets the directory to place generated source java files.


getSourcedestdir

public File getSourcedestdir()
Gets the directory to place generated source java files.


getVerbose

public boolean getVerbose()
Gets the "verbose" flag.


setVerbose

public void setVerbose(boolean verbose)
Sets the "verbose" flag.


getDebug

public boolean getDebug()
Gets the debug flag.


setDebug

public void setDebug(boolean debug)
Sets the debug flag.


getGenwsdl

public boolean getGenwsdl()
Gets the genWsdl flag.


setGenwsdl

public void setGenwsdl(boolean genWsdl)
Sets the genWsdl flag.


getProtocol

public String getProtocol()
Gets the protocol.


setProtocol

public void setProtocol(String protocol)
Sets the protocol.


getServicename

public String getServicename()
Gets the serviceName.


setServicename

public void setServicename(String name)
Sets the serviceName.


getPortname

public String getPortname()
Gets the portName.


setPortname

public void setPortname(String name)
Sets the serviceName.


setIncludeantruntime

public void setIncludeantruntime(boolean include)
Include ant's own classpath in this task's classpath?


getIncludeantruntime

public boolean getIncludeantruntime()
Gets whether or not the ant classpath is to be included in the task's classpath.


setIncludejavaruntime

public void setIncludejavaruntime(boolean include)
Sets whether or not to include the java runtime libraries to this task's classpath.


getIncludejavaruntime

public boolean getIncludejavaruntime()
Gets whether or not the java runtime should be included in this task's classpath.


getSei

public String getSei()
Returns:
Returns the sei.

setSei

public void setSei(String endpointImplementationClass)

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