Package org.jboss.ws.tools.ant
Class WSProvideTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.jboss.ws.tools.ant.WSProvideTask
- All Implemented Interfaces:
Cloneable
public class WSProvideTask
extends org.apache.tools.ant.Task
Ant task which invokes provides a Web Service contract and portable JAX-WS wrapper classes.
* = required.
| 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 |
| destdir | The output directory for generated artifacts. | "output" |
| resourcedestdir | The output directory for resource artifacts (WSDL/XSD). | value of destdir |
| sourcedestdir | The output directory for Java source. | value of destdir |
| genwsdl | Whether or not to generate WSDL. | false |
| address | The generated port soap:address in wsdl. | |
| extension | Enable SOAP 1.2 binding extension. | false |
| verbose | Enables more informational output about cmd progress. | false |
| sei | Service Endpoint Implementation. | |
| classpath | The classpath that contains the service endpoint implementation. | "" |
Example:
<target name="test-wsproivde" depends="init">
<taskdef name="WSProvideTask" classname="org.jboss.ws.tools.ant.WSProvideTask">
<classpath refid="core.classpath"/>
</taskdef>
<WSProvideTask
fork="false"
keep="true"
destdir="out"
resourcedestdir="out-resource"
sourcedestdir="out-source"
genwsdl="true"
extension="true"
verbose="true"
sei="org.jboss.test.ws.jaxws.jsr181.soapbinding.DocWrappedServiceImpl">
<classpath>
<pathelement path="${tests.output.dir}/classes"/>
</classpath>
</WSProvideTask>
</target>
- Author:
- Jason T. Greene, Richard Opalka, Alessio Soldano
-
Field Summary
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.tools.ant.types.Pathorg.apache.tools.ant.types.Commandline.Argumentvoidexecute()voidvoidsetAddress(String address) voidsetClasspath(org.apache.tools.ant.types.Path classpath) voidsetClasspathRef(org.apache.tools.ant.types.Reference ref) voidsetDebug(boolean debug) voidsetDestdir(File destdir) voidsetExtension(boolean extension) voidsetFork(boolean fork) voidsetGenwsdl(boolean genwsdl) voidsetKeep(boolean keep) voidsetProtocol(String protocol) voidsetResourcedestdir(File resourcedestdir) voidvoidsetSourcedestdir(File sourcedestdir) voidsetVerbose(boolean verbose) 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, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Constructor Details
-
WSProvideTask
public WSProvideTask()
-
-
Method Details
-
setDebug
public void setDebug(boolean debug) -
createJvmarg
public org.apache.tools.ant.types.Commandline.Argument createJvmarg() -
setClasspath
public void setClasspath(org.apache.tools.ant.types.Path classpath) -
setClasspathRef
public void setClasspathRef(org.apache.tools.ant.types.Reference ref) -
createClasspath
public org.apache.tools.ant.types.Path createClasspath() -
setDestdir
-
setExtension
public void setExtension(boolean extension) -
setProtocol
-
setKeep
public void setKeep(boolean keep) -
setSei
-
setFork
public void setFork(boolean fork) -
setResourcedestdir
-
setSourcedestdir
-
setVerbose
public void setVerbose(boolean verbose) -
setGenwsdl
public void setGenwsdl(boolean genwsdl) -
setAddress
-
executeNonForked
public void executeNonForked() -
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-