org.jboss.wsf.spi.tools.ant
Class WSProvideTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by 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.

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
verboseEnables more informational output about cmd progress.false
sei*Service Endpoint Implementation.
classpathThe 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

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
WSProvideTask()
           
 
Method Summary
 org.apache.tools.ant.types.Path createClasspath()
           
 org.apache.tools.ant.types.Commandline.Argument createJvmarg()
           
 void execute()
           
 void executeNonForked()
           
 void setClasspath(org.apache.tools.ant.types.Path classpath)
           
 void setClasspathRef(org.apache.tools.ant.types.Reference ref)
           
 void setDebug(boolean debug)
           
 void setDestdir(java.io.File destdir)
           
 void setFork(boolean fork)
           
 void setGenwsdl(boolean genwsdl)
           
 void setKeep(boolean keep)
           
 void setResourcedestdir(java.io.File resourcedestdir)
           
 void setSei(java.lang.String sei)
           
 void setSourcedestdir(java.io.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 Detail

WSProvideTask

public WSProvideTask()
Method Detail

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.