public class WSConsumeTask
extends org.apache.tools.ant.Task
Attribute | Description | Default |
---|---|---|
fork | Whether or not to run the generation task in a separate VM. | true |
keep | Keep/Enable Java source code generation. | false |
catalog | Oasis XML Catalog file for entity resolution | none |
package | The target Java package for generated code. | generated |
binding | A JAX-WS or JAXB binding file | none |
wsdlLocation | Value to use for @@WebService.wsdlLocation | generated |
destdir | The output directory for generated artifacts. | "output" |
sourcedestdir | The output directory for Java source. | value of destdir |
extension | Enable SOAP 1.2 binding extension. | false |
target | The JAX-WS specification target. Allowed values are 2.1 and 2.2 | |
verbose | Enables more informational output about cmd progress. | false |
wsdl* | The WSDL file or URL | n/a |
Example:
<WSConsumeTask fork="true" verbose="true" destdir="output" sourcedestdir="gen-src" keep="true" wsdllocation="handEdited.wsdl" wsdl="foo.wsdl"> <binding dir="binding-files" includes="*.xml" excludes="bad.xml"/> </wsimport>
Constructor and Description |
---|
WSConsumeTask() |
Modifier and Type | Method and Description |
---|---|
void |
addConfiguredBinding(org.apache.tools.ant.types.FileSet fs) |
org.apache.tools.ant.types.Commandline.Argument |
createJvmarg() |
void |
execute() |
void |
executeNonForked() |
void |
setAdditionalHeaders(boolean additionalHeaders) |
void |
setBinding(File bindingFile) |
void |
setCatalog(File catalog) |
void |
setDebug(boolean debug) |
void |
setDestdir(File destdir) |
void |
setExtension(boolean extension) |
void |
setFork(boolean fork) |
void |
setKeep(boolean keep) |
void |
setNoCompile(boolean nocompile) |
void |
setPackage(String targetPackage) |
void |
setSourcedestdir(File sourcedestdir) |
void |
setTarget(String target) |
void |
setVerbose(boolean verbose) |
void |
setWsdl(String wsdl) |
void |
setWsdlLocation(String wsdlLocation) |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void setDebug(boolean debug)
public org.apache.tools.ant.types.Commandline.Argument createJvmarg()
public void setBinding(File bindingFile)
public void setCatalog(File catalog)
public void setDestdir(File destdir)
public void setFork(boolean fork)
public void setKeep(boolean keep)
public void setExtension(boolean extension)
public void setAdditionalHeaders(boolean additionalHeaders)
public void setSourcedestdir(File sourcedestdir)
public void setTarget(String target)
public void setPackage(String targetPackage)
public void setVerbose(boolean verbose)
public void setNoCompile(boolean nocompile)
public void setWsdl(String wsdl)
public void setWsdlLocation(String wsdlLocation)
public void addConfiguredBinding(org.apache.tools.ant.types.FileSet fs)
public void executeNonForked()
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
Copyright © 2012 JBoss, by Red Hat. All Rights Reserved.