org.codehaus.mojo.jaxws
Class TestWsImportMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.jaxws.TestWsImportMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class TestWsImportMojo
extends org.apache.maven.plugin.AbstractMojo

Parses wsdl and binding files and generates Java code needed to access it (for tests.)

Author:
Kohsuke Kawaguchi

Field Summary
protected  java.io.File bindingDirectory
          Directory containing binding files.
protected  java.util.List bindingFiles
          List of files to use for bindings.If not specified, all .xml files in the bindingDirectory will be used.
protected  java.io.File destDir
          Specify where to place output generated classes Set to "" to turn it off
protected  boolean extension
          Allow to use the JAXWS Vendor Extensions.
protected  boolean keep
          Keep generated files.
protected  org.apache.maven.project.MavenProject project
           
protected  java.io.File sourceDestDir
          Specify where to place generated source files, keep is turned on with this option.
protected  boolean verbose
          Output messages about what the tool is doing
protected  java.util.List wsdlFiles
          List of files to use for wsdls.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
TestWsImportMojo()
           
 
Method Summary
 void execute()
           
 java.io.File[] getBindingFiles()
          Returns a file array of xml files to translate to object models.
protected  java.io.File getDestDir()
          Either ${build.outputDirectory} or ${build.testOutputDirectory}.
 java.io.File[] getWSDLFiles()
          Returns a file array of wsdl files to translate to object models.
protected  java.lang.String initClassLoader(java.lang.ClassLoader parent)
          Need to build a URLClassloader since Maven removed it form the chain
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

destDir

protected java.io.File destDir
Specify where to place output generated classes Set to "" to turn it off


wsdlFiles

protected java.util.List wsdlFiles
List of files to use for wsdls. If not specified, all .wsdl files in the wsdlDirectory will be used.


bindingDirectory

protected java.io.File bindingDirectory
Directory containing binding files.


bindingFiles

protected java.util.List bindingFiles
List of files to use for bindings.If not specified, all .xml files in the bindingDirectory will be used.


sourceDestDir

protected java.io.File sourceDestDir
Specify where to place generated source files, keep is turned on with this option.


project

protected org.apache.maven.project.MavenProject project

verbose

protected boolean verbose
Output messages about what the tool is doing


keep

protected boolean keep
Keep generated files.


extension

protected boolean extension
Allow to use the JAXWS Vendor Extensions.

Constructor Detail

TestWsImportMojo

public TestWsImportMojo()
Method Detail

getDestDir

protected java.io.File getDestDir()
Either ${build.outputDirectory} or ${build.testOutputDirectory}.


execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

getBindingFiles

public final java.io.File[] getBindingFiles()
Returns a file array of xml files to translate to object models.

Returns:
An array of schema files to be parsed by the schema compiler.

getWSDLFiles

public final java.io.File[] getWSDLFiles()
Returns a file array of wsdl files to translate to object models.

Returns:
An array of schema files to be parsed by the schema compiler.

initClassLoader

protected java.lang.String initClassLoader(java.lang.ClassLoader parent)
                                    throws org.apache.maven.plugin.MojoExecutionException
Need to build a URLClassloader since Maven removed it form the chain

Parameters:
parent -
Returns:
Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2007. All Rights Reserved.