|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectAbstractMojo
org.apache.cxf.maven_plugin.AbstractCodegenMoho
public abstract class AbstractCodegenMoho
| Field Summary | |
|---|---|
protected BuildContext |
buildContext
|
protected String |
classesDirectory
|
protected boolean |
disableDependencyScan
By default all maven dependencies of type "wsdl" are added to the effective wsdlOptions. |
protected boolean |
disableDirectoryScan
Disables the scanning of the wsdlRoot/testWsdlRoot directories. |
protected String[] |
excludes
A list of wsdl files to exclude. |
protected String |
fork
Allows running the JavaToWs in a separate process. |
protected String[] |
includes
A list of wsdl files to include. |
protected File |
markerDirectory
Directory in which the "DONE" markers are saved that |
protected List<Artifact> |
pluginArtifacts
The plugin dependencies, needed for the fork mode. |
protected MavenProject |
project
|
protected File |
testWsdlRoot
|
protected boolean |
useCompileClasspath
Use the compile classpath rather than the test classpath for execution useful if the test dependencies clash with those of wsdl2java |
protected File |
wsdlRoot
|
| Constructor Summary | |
|---|---|
AbstractCodegenMoho()
|
|
| Method Summary | |
|---|---|
protected void |
addPluginArtifact(Set<URI> artifactsPath)
|
protected void |
configureProxyServerSettings()
|
protected abstract List<GenericWsdlOption> |
createWsdlOptionsFromScansAndExplicitWsdlOptions()
|
protected boolean |
deleteDir(File f)
Recursively delete the given directory |
protected void |
downloadRemoteWsdls(List<GenericWsdlOption> effectiveWsdlOptions)
|
void |
execute()
|
protected void |
forkOnce(Set<URI> classPath,
List<GenericWsdlOption> effectiveWsdlOptions)
|
protected abstract Bus |
generate(GenericWsdlOption o,
Bus bus,
Set<URI> cp)
|
protected List<String> |
generateCommandLine(GenericWsdlOption wsdlOption)
|
protected File |
getDoneFile(URI basedir,
URI wsdlURI,
String mojo)
|
protected abstract Class<?> |
getForkClass()
|
protected abstract File |
getGeneratedSourceRoot()
|
protected abstract File |
getGeneratedTestRoot()
|
protected abstract String |
getMarkerSuffix()
|
File |
getWsdlFile(GenericWsdlOption option,
File baseDir)
Try to find a file matching the wsdl path (either absolutely, relatively to the current dir or to the project base dir) |
URI |
getWsdlURI(GenericWsdlOption option,
URI baseURI)
|
protected void |
runForked(Set<URI> classPath,
String mainClassName,
String[] args)
|
protected abstract boolean |
shouldRun(GenericWsdlOption wsdlOption,
File doneFile,
URI wsdlURI)
Determine if code should be generated from the given wsdl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String classesDirectory
protected boolean disableDependencyScan
protected boolean disableDirectoryScan
protected String fork
protected String[] includes
protected File markerDirectory
protected List<Artifact> pluginArtifacts
protected MavenProject project
protected boolean useCompileClasspath
protected String[] excludes
protected File testWsdlRoot
protected File wsdlRoot
protected BuildContext buildContext
| Constructor Detail |
|---|
public AbstractCodegenMoho()
| Method Detail |
|---|
public void execute()
throws MojoExecutionException
MojoExecutionException
protected abstract Bus generate(GenericWsdlOption o,
Bus bus,
Set<URI> cp)
throws MojoExecutionException
MojoExecutionExceptionprotected void addPluginArtifact(Set<URI> artifactsPath)
protected void configureProxyServerSettings()
throws MojoExecutionException
MojoExecutionException
protected abstract List<GenericWsdlOption> createWsdlOptionsFromScansAndExplicitWsdlOptions()
throws MojoExecutionException
MojoExecutionExceptionprotected boolean deleteDir(File f)
f -
protected abstract String getMarkerSuffix()
protected List<String> generateCommandLine(GenericWsdlOption wsdlOption)
throws MojoExecutionException
MojoExecutionException
protected void forkOnce(Set<URI> classPath,
List<GenericWsdlOption> effectiveWsdlOptions)
throws MojoExecutionException
MojoExecutionExceptionprotected abstract Class<?> getForkClass()
protected File getDoneFile(URI basedir,
URI wsdlURI,
String mojo)
protected abstract File getGeneratedSourceRoot()
protected abstract File getGeneratedTestRoot()
protected void runForked(Set<URI> classPath,
String mainClassName,
String[] args)
throws MojoExecutionException
MojoExecutionException
protected abstract boolean shouldRun(GenericWsdlOption wsdlOption,
File doneFile,
URI wsdlURI)
wsdlOption - doneFile - wsdlURI -
public File getWsdlFile(GenericWsdlOption option,
File baseDir)
public URI getWsdlURI(GenericWsdlOption option,
URI baseURI)
throws MojoExecutionException
MojoExecutionException
protected void downloadRemoteWsdls(List<GenericWsdlOption> effectiveWsdlOptions)
throws MojoExecutionException
MojoExecutionException
|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||