public class WSDL2JavaMojo extends AbstractCodegenMoho
buildContext, classesDirectory, disableDependencyScan, disableDirectoryScan, excludes, fork, includes, markerDirectory, pluginArtifacts, project, testWsdlRoot, useCompileClasspath, wsdlRoot| Constructor and Description |
|---|
WSDL2JavaMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createMarkerFile(GenericWsdlOption wsdlOption,
File doneFile,
URI wsdlURI) |
protected List<GenericWsdlOption> |
createWsdlOptionsFromScansAndExplicitWsdlOptions() |
void |
execute() |
protected Bus |
generate(GenericWsdlOption genericWsdlOption,
Bus bus,
Set<URI> classPath) |
protected List<String> |
generateCommandLine(GenericWsdlOption wsdlOption) |
protected URI |
getBaseFileURI(URI uri)
Finds the base file URI that 'contains' the given URI.
|
protected Class<?> |
getForkClass() |
protected File |
getGeneratedSourceRoot() |
protected File |
getGeneratedTestRoot() |
protected String |
getMarkerSuffix() |
protected long |
getTimestamp(URI uri)
Finds the timestamp for a given URI.
|
protected void |
mergeOptions(List<GenericWsdlOption> effectiveWsdlOptions)
Merge WsdlOptions that point to the same file by adding the extraargs to the first option and deleting
the second from the options list
|
protected boolean |
shouldRun(GenericWsdlOption genericWsdlOption,
File doneFile,
URI wsdlURI)
Determine if code should be generated from the given wsdl
|
addPluginArtifact, configureProxyServerSettings, deleteDir, downloadRemoteWsdls, forkOnce, getDoneFile, getWsdlFile, getWsdlURI, runForkedprotected void mergeOptions(List<GenericWsdlOption> effectiveWsdlOptions)
options - protected boolean shouldRun(GenericWsdlOption genericWsdlOption, File doneFile, URI wsdlURI)
shouldRun in class AbstractCodegenMohowsdlOption - doneFile - wsdlURI - protected void createMarkerFile(GenericWsdlOption wsdlOption, File doneFile, URI wsdlURI) throws IOException
createMarkerFile in class AbstractCodegenMohoIOExceptionprotected long getTimestamp(URI uri)
getBaseFileURI(URI) prior to the timestamp
check in order to handle "classpath" and "jar" URIs.uri - the URI to timestampprotected URI getBaseFileURI(URI uri)
uri - the URI to resolveprotected List<String> generateCommandLine(GenericWsdlOption wsdlOption) throws org.apache.maven.plugin.MojoExecutionException
generateCommandLine in class AbstractCodegenMohoorg.apache.maven.plugin.MojoExecutionExceptionprotected Bus generate(GenericWsdlOption genericWsdlOption, Bus bus, Set<URI> classPath) throws org.apache.maven.plugin.MojoExecutionException
generate in class AbstractCodegenMohoorg.apache.maven.plugin.MojoExecutionExceptionprotected List<GenericWsdlOption> createWsdlOptionsFromScansAndExplicitWsdlOptions() throws org.apache.maven.plugin.MojoExecutionException
createWsdlOptionsFromScansAndExplicitWsdlOptions in class AbstractCodegenMohoorg.apache.maven.plugin.MojoExecutionExceptionprotected File getGeneratedSourceRoot()
getGeneratedSourceRoot in class AbstractCodegenMohoprotected File getGeneratedTestRoot()
getGeneratedTestRoot in class AbstractCodegenMohoprotected Class<?> getForkClass()
getForkClass in class AbstractCodegenMohopublic void execute()
throws org.apache.maven.plugin.MojoExecutionException
execute in interface org.apache.maven.plugin.Mojoexecute in class AbstractCodegenMohoorg.apache.maven.plugin.MojoExecutionExceptionprotected String getMarkerSuffix()
getMarkerSuffix in class AbstractCodegenMohoApache CXF