org.jboss.wsf.spi.tools.ant
Class WSConsumeTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
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.
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 |
catalog | Oasis XML Catalog file for entity resolution | none |
package | The target Java package for generated code. | generated |
binding | A JAX-WS or JAXB binding file | none |
wsdlLocation | Value to use for @@WebService.wsdlLocation | generated |
destdir | The output directory for generated artifacts. | "output" |
sourcedestdir | The output directory for Java source. | value of destdir |
extension | Enable SOAP 1.2 binding extension. | false |
target | The JAX-WS specification target | 2.0 | 2.1 |
verbose | Enables more informational output about cmd progress. | false |
wsdl* | The WSDL file or URL | n/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
Fields inherited from class org.apache.tools.ant.Task |
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 |
WSConsumeTask
public WSConsumeTask()
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.