org.apache.cxf.maven_plugin.wsdl2js
Class WSDL2JavaScriptMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.cxf.maven_plugin.AbstractCodegenMoho
          extended by org.apache.cxf.maven_plugin.wsdl2js.WSDL2JavaScriptMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class WSDL2JavaScriptMojo
extends AbstractCodegenMoho


Field Summary
 
Fields inherited from class org.apache.cxf.maven_plugin.AbstractCodegenMoho
buildContext, classesDirectory, disableDependencyScan, disableDirectoryScan, excludes, fork, includes, markerDirectory, pluginArtifacts, project, testWsdlRoot, useCompileClasspath, wsdlRoot
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
WSDL2JavaScriptMojo()
           
 
Method Summary
protected  List<GenericWsdlOption> createWsdlOptionsFromScansAndExplicitWsdlOptions()
           
protected  org.apache.cxf.Bus generate(GenericWsdlOption genericWsdlOption, org.apache.cxf.Bus bus, Set<URI> classPath)
           
protected  Class<?> getForkClass()
           
protected  File getGeneratedSourceRoot()
           
protected  File getGeneratedTestRoot()
           
protected  String getMarkerSuffix()
           
static List<GenericWsdlOption> loadWsdlOptionsFromDependencies(org.apache.maven.project.MavenProject project, Option defaultOptions, File outputDir)
           
protected  void mergeOptions(List<GenericWsdlOption> effectiveWsdlOptions)
           
protected  boolean shouldRun(GenericWsdlOption genericWsdlOption, File doneFile, URI wsdlURI)
          Determine if code should be generated from the given wsdl
 
Methods inherited from class org.apache.cxf.maven_plugin.AbstractCodegenMoho
addPluginArtifact, configureProxyServerSettings, createMarkerFile, deleteDir, downloadRemoteWsdls, execute, forkOnce, generateCommandLine, getDoneFile, getWsdlFile, getWsdlURI, runForked
 
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
 

Constructor Detail

WSDL2JavaScriptMojo

public WSDL2JavaScriptMojo()
Method Detail

generate

protected org.apache.cxf.Bus generate(GenericWsdlOption genericWsdlOption,
                                      org.apache.cxf.Bus bus,
                                      Set<URI> classPath)
                               throws org.apache.maven.plugin.MojoExecutionException
Specified by:
generate in class AbstractCodegenMoho
Throws:
org.apache.maven.plugin.MojoExecutionException

getGeneratedSourceRoot

protected File getGeneratedSourceRoot()
Specified by:
getGeneratedSourceRoot in class AbstractCodegenMoho

getGeneratedTestRoot

protected File getGeneratedTestRoot()
Specified by:
getGeneratedTestRoot in class AbstractCodegenMoho

shouldRun

protected boolean shouldRun(GenericWsdlOption genericWsdlOption,
                            File doneFile,
                            URI wsdlURI)
Description copied from class: AbstractCodegenMoho
Determine if code should be generated from the given wsdl

Specified by:
shouldRun in class AbstractCodegenMoho
Returns:

mergeOptions

protected void mergeOptions(List<GenericWsdlOption> effectiveWsdlOptions)

createWsdlOptionsFromScansAndExplicitWsdlOptions

protected List<GenericWsdlOption> createWsdlOptionsFromScansAndExplicitWsdlOptions()
                                                                            throws org.apache.maven.plugin.MojoExecutionException
Specified by:
createWsdlOptionsFromScansAndExplicitWsdlOptions in class AbstractCodegenMoho
Throws:
org.apache.maven.plugin.MojoExecutionException

loadWsdlOptionsFromDependencies

public static List<GenericWsdlOption> loadWsdlOptionsFromDependencies(org.apache.maven.project.MavenProject project,
                                                                      Option defaultOptions,
                                                                      File outputDir)

getForkClass

protected Class<?> getForkClass()
Specified by:
getForkClass in class AbstractCodegenMoho

getMarkerSuffix

protected String getMarkerSuffix()
Specified by:
getMarkerSuffix in class AbstractCodegenMoho


Apache CXF