org.apache.ws.resource.tool
Class Wsdl2JavaTask

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.apache.tools.ant.taskdefs.MatchingTask
              extended byorg.apache.ws.resource.tool.Wsdl2JavaTask
All Implemented Interfaces:
org.apache.tools.ant.types.selectors.SelectorContainer

public class Wsdl2JavaTask
extends org.apache.tools.ant.taskdefs.MatchingTask

Ant task that wraps Wsdl2Java.

Author:
Ian Springer (ian DOT springer AT hp DOT com)

Field Summary
 
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
fileset
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
Wsdl2JavaTask()
           
 
Method Summary
 void addConfiguredSysproperty(org.apache.tools.ant.types.Environment.Variable var)
          Sets a system property.
 void addConfiguredWsdls(org.apache.tools.ant.types.FileSet wsdls)
          DOCUMENT_ME
 org.apache.tools.ant.types.Path createClasspath()
          Creates the classpath.
protected  Wsdl2Java createWsdl2Java(java.io.File[] wsdlFiles, java.io.File outputDir, java.io.File[] classpathFiles, Wsdl2Java.Wsdl2JavaOptions options)
          DOCUMENT_ME
 void execute()
          DOCUMENT_ME
 org.apache.tools.ant.types.Path getClasspath()
          Gets the classpath to be used for this compilation.
 void setClasspath(org.apache.tools.ant.types.Path classpath)
          Set the classpath to be passed to the XMLBeans schema compiler.
 void setClasspathRef(org.apache.tools.ant.types.Reference ref)
          Adds a reference to a classpath defined elsewhere.
 void setDebug(boolean debug)
          Deprecated.  
 void setNonProxyHosts(java.lang.String nonProxyHosts)
          DOCUMENT_ME
 void setOutputDir(java.io.File outputDir)
          DOCUMENT_ME
 void setProxyHost(java.lang.String proxyHost)
          DOCUMENT_ME
 void setProxyPort(java.lang.String proxyPort)
          DOCUMENT_ME
 void setVerbose(boolean verbose)
          DOCUMENT_ME
 void setWsdl(java.io.File wsdl)
          DOCUMENT_ME
 java.lang.String toString()
          DOCUMENT_ME
 
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Wsdl2JavaTask

public Wsdl2JavaTask()
Method Detail

setClasspath

public void setClasspath(org.apache.tools.ant.types.Path classpath)
Set the classpath to be passed to the XMLBeans schema compiler.

Parameters:
classpath - the classpath to be passed to the XMLBeans schema compiler

getClasspath

public org.apache.tools.ant.types.Path getClasspath()
Gets the classpath to be used for this compilation.

Returns:
the classpath

setClasspathRef

public void setClasspathRef(org.apache.tools.ant.types.Reference ref)
Adds a reference to a classpath defined elsewhere.

Parameters:
ref - the reference to add

setDebug

public void setDebug(boolean debug)
Deprecated.  

DOCUMENT_ME

Parameters:
debug - DOCUMENT_ME

setNonProxyHosts

public void setNonProxyHosts(java.lang.String nonProxyHosts)
DOCUMENT_ME

Parameters:
nonProxyHosts - DOCUMENT_ME

setOutputDir

public void setOutputDir(java.io.File outputDir)
DOCUMENT_ME

Parameters:
outputDir - DOCUMENT_ME

setProxyHost

public void setProxyHost(java.lang.String proxyHost)
DOCUMENT_ME

Parameters:
proxyHost - DOCUMENT_ME

setProxyPort

public void setProxyPort(java.lang.String proxyPort)
DOCUMENT_ME

Parameters:
proxyPort - DOCUMENT_ME

setVerbose

public void setVerbose(boolean verbose)
DOCUMENT_ME

Parameters:
verbose - DOCUMENT_ME

setWsdl

public void setWsdl(java.io.File wsdl)
DOCUMENT_ME

Parameters:
wsdl - a WSDM WSDL file

addConfiguredSysproperty

public void addConfiguredSysproperty(org.apache.tools.ant.types.Environment.Variable var)
Sets a system property.

Parameters:
var - the system property to be set

addConfiguredWsdls

public void addConfiguredWsdls(org.apache.tools.ant.types.FileSet wsdls)
DOCUMENT_ME

Parameters:
wsdls - DOCUMENT_ME

createClasspath

public org.apache.tools.ant.types.Path createClasspath()
Creates the classpath.

Returns:
the classpath

execute

public void execute()
             throws org.apache.tools.ant.BuildException
DOCUMENT_ME

Throws:
org.apache.tools.ant.BuildException - DOCUMENT_ME

toString

public java.lang.String toString()
DOCUMENT_ME

Returns:
DOCUMENT_ME

createWsdl2Java

protected Wsdl2Java createWsdl2Java(java.io.File[] wsdlFiles,
                                    java.io.File outputDir,
                                    java.io.File[] classpathFiles,
                                    Wsdl2Java.Wsdl2JavaOptions options)
                             throws java.lang.Exception
DOCUMENT_ME

Parameters:
wsdlFiles - DOCUMENT_ME
outputDir - DOCUMENT_ME
classpathFiles - DOCUMENT_ME
options - DOCUMENT_ME
Returns:
DOCUMENT_ME
Throws:
java.lang.Exception - DOCUMENT_ME


Copyright © 2004-2005 Apache Software Foundation. All Rights Reserved.