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.
AttributeDescriptionDefault
forkWhether or not to run the generation task in a separate VM.true
keepKeep/Enable Java source code generation.false
destdirThe output directory for generated artifacts."output"
resourcedestdirThe output directory for resource artifacts (WSDL/XSD).value of destdir
sourcedestdirThe output directory for Java source.value of destdir
genwsdlWhether or not to generate WSDL.false
addressThe generated port soap:address in wsdl.
extensionEnable SOAP 1.2 binding extension.false
verboseEnables more informational output about cmd progress.false
seiService Endpoint Implementation.
classpathThe classpath that contains the service endpoint implementation.""
* = required.

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, wrapper

    Fields inherited from class org.apache.tools.ant.ProjectComponent

    description, location, project
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.tools.ant.types.Path
     
    org.apache.tools.ant.types.Commandline.Argument
     
    void
     
    void
     
    void
    setAddress(String address)
     
    void
    setClasspath(org.apache.tools.ant.types.Path classpath)
     
    void
    setClasspathRef(org.apache.tools.ant.types.Reference ref)
     
    void
    setDebug(boolean debug)
     
    void
    setDestdir(File destdir)
     
    void
    setExtension(boolean extension)
     
    void
    setFork(boolean fork)
     
    void
    setGenwsdl(boolean genwsdl)
     
    void
    setKeep(boolean keep)
     
    void
    setProtocol(String protocol)
     
    void
    setResourcedestdir(File resourcedestdir)
     
    void
     
    void
    setSourcedestdir(File sourcedestdir)
     
    void
    setVerbose(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, 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
  • 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

      public void setDestdir(File destdir)
    • setExtension

      public void setExtension(boolean extension)
    • setProtocol

      public void setProtocol(String protocol)
    • setKeep

      public void setKeep(boolean keep)
    • setSei

      public void setSei(String sei)
    • setFork

      public void setFork(boolean fork)
    • setResourcedestdir

      public void setResourcedestdir(File resourcedestdir)
    • setSourcedestdir

      public void setSourcedestdir(File sourcedestdir)
    • setVerbose

      public void setVerbose(boolean verbose)
    • setGenwsdl

      public void setGenwsdl(boolean genwsdl)
    • setAddress

      public void setAddress(String address)
    • 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