org.codehaus.mojo.jaxws
Class TestWsGenMojo

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

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

Reads a JAX-WS service endpoint implementation class and generates all of the portable artifacts for a JAX-WS web service (into the generate test source directroy.)

Due to MNG-1508, this requires 2.0.5 or higher.

File-location:
TestWsGenMojo
Last check-in date:
2009-08-04 13:41:09 +0200 (Di, 04. Aug 2009) by swismer for revision 3872

Field Summary
protected  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  boolean verbose
          Output messages about what the tool is doing
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
TestWsGenMojo()
           
 
Method Summary
 void execute()
           
protected  File getDestDir()
          Either ${build.outputDirectory} or ${build.testOutputDirectory}.
protected  String initClassLoader(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 File destDir
Specify where to place output generated classes Set to "" to turn it off


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

TestWsGenMojo

public TestWsGenMojo()
Method Detail

getDestDir

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


execute

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

initClassLoader

protected String initClassLoader(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 © 2005-2011 ELCA. All Rights Reserved.