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

public class WsGen2
extends WsTask2

wsgen task for use with the JAXWS project.


Nested Class Summary
static class WsGen2.ExternalMetadata
           
 
Field Summary
protected  org.apache.tools.ant.types.Path compileClasspath
          ********************** -classpath option ************************
protected  boolean inlineSchemas
          ***************** -inlineSchemas 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.
 WsGen2.ExternalMetadata createExternalMetadata()
           
 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 getGenwsdl()
          Gets the genWsdl flag.
 boolean getInlineSchemas()
          Gets the "inlineSchemas" flag.
 java.lang.String getPortname()
          Gets the portName.
 java.lang.String getProtocol()
          Gets the protocol.
 java.io.File getResourcedestdir()
          Gets the directory for non-class generated files.
 java.lang.String getSei()
           
 java.lang.String getServicename()
          Gets the serviceName.
protected  boolean runInVm(java.lang.String[] arguments, java.io.OutputStream out)
          Used to call the tool directly using API.
 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 setGenwsdl(boolean genWsdl)
          Sets the genWsdl flag.
 void setInlineSchemas(boolean inlineSchemas)
          Sets the "inlineSchemas" flag.
 void setPortname(java.lang.String name)
          Sets the serviceName.
 void setProtocol(java.lang.String protocol)
          Sets the protocol.
 void setResourcedestdir(java.io.File resourceDir)
          Sets the directory for non-class generated files.
 void setSei(java.lang.String endpointImplementationClass)
          Set SEI.
 void setServicename(java.lang.String name)
          Sets the serviceName.
protected  org.apache.tools.ant.types.CommandlineJava setupCommand()
          Set up command line to invoke.
 
Methods inherited from class com.sun.tools.ws.ant.WsTask2
createJavacarg, createJvmarg, execute, getDebug, getDestdir, getEncoding, getExtension, getFork, getIncludeantruntime, getIncludejavaruntime, getJavacargs, getKeep, getSourcedestdir, getVerbose, isFailonerror, isXendorsed, isXnocompile, setDebug, setDestdir, setEncoding, setExtension, setFailonerror, setFork, setIncludeantruntime, setIncludejavaruntime, setKeep, setSourcedestdir, setVerbose, setXendorsed, setXnocompile
 
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 ************************


inlineSchemas

protected boolean inlineSchemas
***************** -inlineSchemas option *********************

Constructor Detail

WsGen2

public WsGen2()
Method Detail

getClasspath

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

Returns:
user defined classpath.

setClasspath

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

Parameters:
classpath - user defined classpath.

createClasspath

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

Returns:
classpath created.

setClasspathRef

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

Parameters:
r - classpath reference.

getCP

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

Returns:
user defined classpath.

setCP

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

Parameters:
classpath - user defined classpath.

getInlineSchemas

public boolean getInlineSchemas()
Gets the "inlineSchemas" flag.

Returns:
true if schema should be inlined in a WSDL.

setInlineSchemas

public void setInlineSchemas(boolean inlineSchemas)
Sets the "inlineSchemas" flag.

Parameters:
inlineSchemas - true to inline schema in a WSDL.

getResourcedestdir

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

Returns:
destination directory for generated resource(s).

setResourcedestdir

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

Parameters:
resourceDir - destination directory for generated resource(s).

getGenwsdl

public boolean getGenwsdl()
Gets the genWsdl flag.

Returns:
true if WSDL should be generated.

setGenwsdl

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

Parameters:
genWsdl - true to generate a WSDL.

getProtocol

public java.lang.String getProtocol()
Gets the protocol.

Returns:
protocol.

setProtocol

public void setProtocol(java.lang.String protocol)
Sets the protocol.

Parameters:
protocol - protocol.

getServicename

public java.lang.String getServicename()
Gets the serviceName.

Returns:
service name.

setServicename

public void setServicename(java.lang.String name)
Sets the serviceName.

Parameters:
name - service name.

getPortname

public java.lang.String getPortname()
Gets the portName.

Returns:
port name.

setPortname

public void setPortname(java.lang.String name)
Sets the serviceName.

Parameters:
name - port name.

getSei

public java.lang.String getSei()
Returns:
Returns the sei.

setSei

public void setSei(java.lang.String endpointImplementationClass)
Set SEI.

Parameters:
endpointImplementationClass - SEI.

setupCommand

protected org.apache.tools.ant.types.CommandlineJava setupCommand()
Description copied from class: WsTask2
Set up command line to invoke.

Overrides:
setupCommand in class WsTask2
Returns:
ready to run command line

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

runInVm

protected boolean runInVm(java.lang.String[] arguments,
                          java.io.OutputStream out)
Description copied from class: WsTask2
Used to call the tool directly using API.

Specified by:
runInVm in class WsTask2
Parameters:
arguments - arguments to be passed to the tool
out - output for the tool
Returns:
true if tool succeed

createExternalMetadata

public WsGen2.ExternalMetadata createExternalMetadata()


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.