org.jboss.wsf.spi.tools.ant
Class WSProvideTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.jboss.wsf.spi.tools.ant.WSProvideTask
- All Implemented Interfaces:
- java.lang.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.
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 |
verbose | Enables more informational output about cmd progress. | false |
sei* | Service Endpoint Implementation. | |
classpath | The classpath that contains the service endpoint implementation. | "" |
* = required.
Example:
<target name="test-wsproivde" depends="init">
<taskdef name="WSProvideTask" classname="org.jboss.wsf.spi.tools.ant.WSProvideTask">
<classpath refid="core.classpath"/>
</taskdef>
<WSProvideTask
fork="false"
keep="true"
destdir="out"
resourcedestdir="out-resource"
sourcedestdir="out-source"
genwsdl="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
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 |
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, setProject |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WSProvideTask
public WSProvideTask()
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
public void setDestdir(java.io.File destdir)
setKeep
public void setKeep(boolean keep)
setSei
public void setSei(java.lang.String sei)
setFork
public void setFork(boolean fork)
setResourcedestdir
public void setResourcedestdir(java.io.File resourcedestdir)
setSourcedestdir
public void setSourcedestdir(java.io.File sourcedestdir)
setVerbose
public void setVerbose(boolean verbose)
setGenwsdl
public void setGenwsdl(boolean genwsdl)
executeNonForked
public void executeNonForked()
execute
public void execute()
throws org.apache.tools.ant.BuildException
- Overrides:
execute
in class org.apache.tools.ant.Task
- Throws:
org.apache.tools.ant.BuildException
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.