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

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.WSConsumeTask
All Implemented Interfaces:
java.lang.Cloneable

public class WSConsumeTask
extends org.apache.tools.ant.Task

Ant task which consumes a Web Service contract.

AttributeDescriptionDefault
forkWhether or not to run the generation task in a separate VM.true
keepKeep/Enable Java source code generation.false
catalog Oasis XML Catalog file for entity resolutionnone
package The target Java package for generated code.generated
bindingA JAX-WS or JAXB binding filenone
wsdlLocationValue to use for @@WebService.wsdlLocationgenerated
destdirThe output directory for generated artifacts."output"
sourcedestdirThe output directory for Java source.value of destdir
extensionEnable SOAP 1.2 binding extension.false
targetThe JAX-WS specification target2.0 | 2.1
verboseEnables more informational output about cmd progress.false
wsdl*The WSDL file or URLn/a
* = required.

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>
 

Author:
Jason T. Greene

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
WSConsumeTask()
           
 
Method Summary
 void addConfiguredBinding(org.apache.tools.ant.types.FileSet fs)
           
 org.apache.tools.ant.types.Commandline.Argument createJvmarg()
           
 void execute()
           
 void executeNonForked()
           
 void setBinding(java.io.File bindingFile)
           
 void setCatalog(java.io.File catalog)
           
 void setDebug(boolean debug)
           
 void setDestdir(java.io.File destdir)
           
 void setExtension(boolean extension)
           
 void setFork(boolean fork)
           
 void setKeep(boolean keep)
           
 void setNoCompile(boolean nocompile)
           
 void setPackage(java.lang.String targetPackage)
           
 void setSourcedestdir(java.io.File sourcedestdir)
           
 void setTarget(java.lang.String target)
           
 void setVerbose(boolean verbose)
           
 void setWsdl(java.lang.String wsdl)
           
 void setWsdlLocation(java.lang.String wsdlLocation)
           
 
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

WSConsumeTask

public WSConsumeTask()
Method Detail

setDebug

public void setDebug(boolean debug)

createJvmarg

public org.apache.tools.ant.types.Commandline.Argument createJvmarg()

setBinding

public void setBinding(java.io.File bindingFile)

setCatalog

public void setCatalog(java.io.File catalog)

setDestdir

public void setDestdir(java.io.File destdir)

setFork

public void setFork(boolean fork)

setKeep

public void setKeep(boolean keep)

setExtension

public void setExtension(boolean extension)

setSourcedestdir

public void setSourcedestdir(java.io.File sourcedestdir)

setTarget

public void setTarget(java.lang.String target)

setPackage

public void setPackage(java.lang.String targetPackage)

setVerbose

public void setVerbose(boolean verbose)

setNoCompile

public void setNoCompile(boolean nocompile)

setWsdl

public void setWsdl(java.lang.String wsdl)

setWsdlLocation

public void setWsdlLocation(java.lang.String wsdlLocation)

addConfiguredBinding

public void addConfiguredBinding(org.apache.tools.ant.types.FileSet fs)

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.