com.sun.tools.ws.ant
Class WsImport2

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.WsImport2
All Implemented Interfaces:
org.apache.tools.ant.types.selectors.SelectorContainer

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

wscompile task for use with the JAXWS project.


Field Summary
protected  boolean extension
          -extensions option
protected  boolean verbose
          -verbose option
protected  boolean xNoAddressingDatabinding
          -Xno-addressing-databinding
 
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
fileset
 
Fields inherited from class org.apache.tools.ant.Task
description, location, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
WsImport2()
           
 
Method Summary
 void addConfiguredBinding(org.apache.tools.ant.types.FileSet fs)
           
 void addConfiguredDepends(org.apache.tools.ant.types.FileSet fs)
          Nested <depends> element.
 void addConfiguredProduces(org.apache.tools.ant.types.FileSet fs)
          Nested <produces> element.
 void addConfiguredXMLCatalog(org.apache.tools.ant.types.XMLCatalog entityResolver)
           
 org.apache.tools.ant.types.Commandline.Argument createJvmarg()
          Adds a JVM argument.
 org.apache.tools.ant.types.Commandline.Argument createXjcarg()
          Adds XJC argument.
 void execute()
          Called by the project to let the task do it's work
 File getCatalog()
           
 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 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 getPackage()
           
 File getSourcedestdir()
          Gets the directory to place generated source java files.
 boolean getVerbose()
          Gets the "verbose" flag.
 String getWsdl()
           
 String getWsdllocation()
           
 File getXauthfile()
           
 boolean getxNoAddressingDatabinding()
           
 boolean isQuiet()
           
 boolean isXadditionalHeaders()
           
 boolean isXdebug()
           
 boolean isXnocompile()
           
 void setBinding(String binding)
           
 void setCatalog(File catalog)
          Adds a new catalog file.
 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 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 setPackage(String pkg)
           
 void setQuiet(boolean quiet)
           
 void setSourcedestdir(File sourceBase)
          Sets the directory to place generated source java files.
 void setTarget(String version)
           
 void setVerbose(boolean verbose)
          Sets the "verbose" flag.
 void setWsdl(String wsdl)
           
 void setWsdllocation(String wsdlLocation)
           
 void setXadditionalHeaders(boolean xadditionalHeaders)
           
 void setXauthfile(File xauthfile)
           
 void setXdebug(boolean xdebug)
           
 void setxNoAddressingDatabinding(boolean xNoAddressingDatabinding)
           
 void setXnocompile(boolean xnocompile)
           
 
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
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

extension

protected boolean extension
-extensions option


xNoAddressingDatabinding

protected boolean xNoAddressingDatabinding
-Xno-addressing-databinding


verbose

protected boolean verbose
-verbose option

Constructor Detail

WsImport2

public WsImport2()
Method Detail

isXdebug

public boolean isXdebug()

setXdebug

public void setXdebug(boolean xdebug)

isXnocompile

public boolean isXnocompile()

setXnocompile

public void setXnocompile(boolean xnocompile)

isXadditionalHeaders

public boolean isXadditionalHeaders()

setXadditionalHeaders

public void setXadditionalHeaders(boolean xadditionalHeaders)

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.


getWsdllocation

public String getWsdllocation()

setWsdllocation

public void setWsdllocation(String wsdlLocation)

addConfiguredXMLCatalog

public void addConfiguredXMLCatalog(org.apache.tools.ant.types.XMLCatalog entityResolver)

setPackage

public void setPackage(String pkg)

getPackage

public String getPackage()

createJvmarg

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

Returns:
JVM argument created

createXjcarg

public org.apache.tools.ant.types.Commandline.Argument createXjcarg()
Adds XJC argument.

Since:
2.1

setFailonerror

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


getExtension

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


setExtension

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


getxNoAddressingDatabinding

public boolean getxNoAddressingDatabinding()

setxNoAddressingDatabinding

public void setxNoAddressingDatabinding(boolean xNoAddressingDatabinding)

getKeep

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


setKeep

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


isQuiet

public boolean isQuiet()

setQuiet

public void setQuiet(boolean quiet)

setTarget

public void setTarget(String version)

getFork

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


setFork

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


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.


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.


addConfiguredDepends

public void addConfiguredDepends(org.apache.tools.ant.types.FileSet fs)
Nested <depends> element.


addConfiguredProduces

public void addConfiguredProduces(org.apache.tools.ant.types.FileSet fs)
Nested <produces> element.


setBinding

public void setBinding(String binding)
Parameters:
binding - The external binding to set.

setCatalog

public void setCatalog(File catalog)
Adds a new catalog file.


getCatalog

public File getCatalog()

getWsdl

public String getWsdl()
Returns:
Returns the wsdl.

setWsdl

public void setWsdl(String wsdl)
Parameters:
wsdl - The wsdl to set.

getXauthfile

public File getXauthfile()

setXauthfile

public void setXauthfile(File xauthfile)

addConfiguredBinding

public void addConfiguredBinding(org.apache.tools.ant.types.FileSet fs)

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