@Mojo(name="wsgen-test",
defaultPhase=PROCESS_TEST_CLASSES,
requiresDependencyResolution=TEST)
public class TestWsGenMojo
extends org.apache.maven.plugin.AbstractMojo
${maven.test.skip} property is honored. If it is set, code generation is skipped.
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
encoding
Specify character encoding used by source files.
|
protected boolean |
genWsdl
Specify that a WSDL file should be generated in
${resourceDestDir}. |
protected boolean |
keep
Keep generated files.
|
protected org.apache.maven.plugin.descriptor.PluginDescriptor |
pluginDescriptor
Information about this plugin, used to lookup this plugin's configuration
from the currently executing project.
|
protected org.apache.maven.project.MavenProject |
project
The Maven Project Object.
|
protected boolean |
verbose
Output messages about what the tool is doing.
|
| Constructor and Description |
|---|
TestWsGenMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSourceRoot(java.lang.String sourceDir) |
protected void |
exec(java.util.List<java.lang.String> args) |
void |
execute() |
protected java.io.File |
getClassesDir() |
protected java.util.List<java.lang.String> |
getCommonArgs() |
protected java.io.File |
getDefaultSrcOut() |
protected java.io.File |
getDestDir()
Either ${build.outputDirectory} or ${build.testOutputDirectory}.
|
protected java.lang.String |
getExtraClasspath() |
protected java.lang.String |
getMain() |
protected java.io.File |
getResourceDestDir() |
protected java.io.File |
getSourceDestDir()
${project.build.directory}/generated-sources/test-wsgen.
|
protected boolean |
isArgSupported(java.lang.String arg) |
protected boolean |
isExtensionOn() |
protected boolean |
isXnocompile()
Checks if compilation after code generation and let generated sources be
compiled by maven during compilation phase.
|
protected void |
maybeUnsupportedOption(java.lang.String option,
java.lang.String value,
java.util.List<java.lang.String> args) |
protected void |
processSei(java.lang.String sei) |
@Parameter(defaultValue="false") protected boolean genWsdl
${resourceDestDir}.@Parameter(property="project",
readonly=true)
protected org.apache.maven.project.MavenProject project
@Parameter(defaultValue="false") protected boolean verbose
@Parameter(defaultValue="true") protected boolean keep
@Parameter(property="project.build.sourceEncoding") protected java.lang.String encoding
@Parameter(defaultValue="${plugin}",
readonly=true)
protected org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor
protected java.io.File getDestDir()
protected java.io.File getSourceDestDir()
protected void addSourceRoot(java.lang.String sourceDir)
protected java.io.File getResourceDestDir()
protected java.io.File getDefaultSrcOut()
protected java.io.File getClassesDir()
protected java.lang.String getExtraClasspath()
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
execute in interface org.apache.maven.plugin.Mojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected void processSei(java.lang.String sei)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected java.lang.String getMain()
protected boolean isXnocompile()
protected boolean isExtensionOn()
protected java.util.List<java.lang.String> getCommonArgs()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected boolean isArgSupported(java.lang.String arg)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void exec(java.util.List<java.lang.String> args)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void maybeUnsupportedOption(java.lang.String option,
java.lang.String value,
java.util.List<java.lang.String> args)
Copyright © 2012-2014 Trajano. All Rights Reserved.