public class WsGen2
extends org.apache.tools.ant.taskdefs.MatchingTask
| Modifier and Type | Class and Description |
|---|---|
static class |
WsGen2.ExternalMetadata |
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.tools.ant.types.Path |
compileClasspath
********************** -classpath option ************************
|
protected boolean |
inlineSchemas
***************** -inlineSchemas option *********************
|
| Constructor and Description |
|---|
WsGen2() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.tools.ant.types.Path |
createClasspath()
Creates a nested classpath element.
|
WsGen2.ExternalMetadata |
createExternalMetadata() |
org.apache.tools.ant.types.Commandline.Argument |
createJavacarg()
Adds Javac argument.
|
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 *
|
protected void |
execute(String tool,
String toolClass)
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.
|
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.
|
org.apache.tools.ant.types.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(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 |
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 org.apache.tools.ant.types.CommandlineJava |
setupCommand()
Set up command line to invoke.
|
void |
setVerbose(boolean verbose)
Sets the "verbose" flag.
|
void |
setXendorsed(boolean xendorsed) |
void |
setXnocompile(boolean xnocompile) |
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, XsetItemsbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeprotected org.apache.tools.ant.types.Path compileClasspath
protected boolean inlineSchemas
public org.apache.tools.ant.types.Path getClasspath()
public void setClasspath(org.apache.tools.ant.types.Path classpath)
classpath - user defined classpath.public org.apache.tools.ant.types.Path createClasspath()
public void setClasspathRef(org.apache.tools.ant.types.Reference r)
r - classpath reference.public org.apache.tools.ant.types.Path getCP()
public void setCP(org.apache.tools.ant.types.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 org.apache.tools.ant.types.CommandlineJava setupCommand()
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionprotected boolean runInVm(String[] arguments, OutputStream out)
arguments - arguments to be passed to the toolout - output for the toolpublic 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 org.apache.tools.ant.types.Commandline.Argument createJavacarg()
public org.apache.tools.ant.types.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 org.apache.tools.ant.types.Commandline.Argument createJvmarg()
Copyright © 2017 Oracle Corporation. All rights reserved.