|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectMatchingTask
com.sun.tools.ws.ant.WsGen2
public class WsGen2
wsgen task for use with the JAXWS project.
| Nested Class Summary | |
|---|---|
static class |
WsGen2.ExternalMetadata
|
| Field Summary | |
|---|---|
protected Path |
compileClasspath
********************** -classpath option ************************ |
protected boolean |
inlineSchemas
***************** -inlineSchemas option ********************* |
| Constructor Summary | |
|---|---|
WsGen2()
|
|
| Method Summary | |
|---|---|
Path |
createClasspath()
Creates a nested classpath element. |
WsGen2.ExternalMetadata |
createExternalMetadata()
|
Commandline.Argument |
createJavacarg()
Adds Javac argument. |
Commandline.Argument |
createJvmarg()
Adds a JVM argument. |
void |
execute()
Called by the project to let the task do it's work * |
protected void |
execute(String tool,
String toolClass)
Let the task do it's work. |
Path |
getClasspath()
Gets the classpath. |
Path |
getCP()
Gets the classpath. |
boolean |
getDebug()
Gets the debug flag. |
File |
getDestdir()
Gets the base directory to output generated class. |
String |
getEncoding()
Gets the encoding for generated source java files. |
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 |
getInlineSchemas()
Gets the "inlineSchemas" flag. |
Commandline |
getJavacargs()
|
boolean |
getKeep()
Gets the "keep" 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. |
boolean |
isFailonerror()
|
boolean |
isXendorsed()
|
boolean |
isXnocompile()
|
protected boolean |
runInVm(String[] arguments,
OutputStream out)
Used to call the tool directly using API. |
void |
setClasspath(Path classpath)
Set the classpath to be used for this compilation. |
void |
setClasspathRef(Reference r)
Adds a reference to a CLASSPATH defined elsewhere. |
void |
setCP(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 |
setEncoding(String encoding)
Sets the encoding for generated source java files. |
void |
setExtension(boolean extension)
Sets the "extension" flag. |
void |
setFailonerror(boolean value)
Mostly for our SQE teams and not to be advertised. |
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 |
setInlineSchemas(boolean inlineSchemas)
Sets the "inlineSchemas" flag. |
void |
setKeep(boolean keep)
Sets the "keep" 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)
Set SEI. |
void |
setServicename(String name)
Sets the serviceName. |
void |
setSourcedestdir(File sourceBase)
Sets the directory to place generated source java files. |
protected CommandlineJava |
setupCommand()
Set up command line to invoke. |
void |
setVerbose(boolean verbose)
Sets the "verbose" flag. |
void |
setXendorsed(boolean xendorsed)
|
void |
setXnocompile(boolean xnocompile)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Path compileClasspath
protected boolean inlineSchemas
| Constructor Detail |
|---|
public WsGen2()
| Method Detail |
|---|
public Path getClasspath()
public void setClasspath(Path classpath)
classpath - user defined classpath.public Path createClasspath()
public void setClasspathRef(Reference r)
r - classpath reference.public Path getCP()
public void setCP(Path classpath)
classpath - user defined classpath.public boolean getInlineSchemas()
public void setInlineSchemas(boolean inlineSchemas)
inlineSchemas - true to inline schema in a WSDL.public File getResourcedestdir()
public void setResourcedestdir(File resourceDir)
resourceDir - destination directory for generated resource(s).public boolean getGenwsdl()
public void setGenwsdl(boolean genWsdl)
genWsdl - true to generate a WSDL.public String getProtocol()
public void setProtocol(String protocol)
protocol - protocol.public String getServicename()
public void setServicename(String name)
name - service name.public String getPortname()
public void setPortname(String name)
name - port name.public String getSei()
public void setSei(String endpointImplementationClass)
endpointImplementationClass - SEI.protected CommandlineJava setupCommand()
public void execute()
throws BuildException
BuildException
protected boolean runInVm(String[] arguments,
OutputStream out)
arguments - arguments to be passed to the toolout - output for the tool
public WsGen2.ExternalMetadata createExternalMetadata()
public File getDestdir()
public void setDestdir(File base)
base - destination directory for generated class(es).public boolean getExtension()
public void setExtension(boolean extension)
extension - true to set extension mode on, false otherwise.public boolean getKeep()
public void setKeep(boolean keep)
keep - keep generated sources.public boolean getFork()
public void setFork(boolean fork)
fork - true to run execution in a forked JVM.public File getSourcedestdir()
public void setSourcedestdir(File sourceBase)
sourceBase - destination directory for generated source(s).public void setEncoding(String encoding)
encoding - encoding to use in generated sources.public String getEncoding()
public boolean getVerbose()
public void setVerbose(boolean verbose)
verbose - whether to output messages about what the compiler is
doing.public boolean getDebug()
public void setDebug(boolean debug)
debug - generate all debugging info.public Commandline.Argument createJavacarg()
public Commandline getJavacargs()
public void setXendorsed(boolean xendorsed)
public boolean isXendorsed()
public boolean isXnocompile()
public void setXnocompile(boolean xnocompile)
public void setFailonerror(boolean value)
value - a boolean valuepublic boolean isFailonerror()
public void setIncludeantruntime(boolean include)
include - a boolean value.public boolean getIncludeantruntime()
public void setIncludejavaruntime(boolean include)
include - a boolean value.public boolean getIncludejavaruntime()
public Commandline.Argument createJvmarg()
protected final void execute(String tool,
String toolClass)
throws BuildException
tool - string to use in logged messagestoolClass - class name to invoke
BuildException - if invocation fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||