@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 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(String sourceDir) |
protected void |
exec(List<String> args) |
void |
execute() |
protected File |
getClassesDir() |
protected List<String> |
getCommonArgs() |
protected File |
getDefaultSrcOut() |
protected File |
getDestDir()
Either ${build.outputDirectory} or ${build.testOutputDirectory}.
|
protected String |
getExtraClasspath() |
protected String |
getMain() |
protected File |
getResourceDestDir() |
protected File |
getSourceDestDir()
${project.build.directory}/generated-sources/test-wsgen.
|
protected boolean |
isArgSupported(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(String option,
String value,
List<String> args) |
protected void |
processSei(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 String encoding
@Parameter(defaultValue="${plugin}",
readonly=true)
protected org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor
protected File getDestDir()
protected File getSourceDestDir()
protected void addSourceRoot(String sourceDir)
protected File getResourceDestDir()
protected File getDefaultSrcOut()
protected File getClassesDir()
protected 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(String sei) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected String getMain()
protected boolean isXnocompile()
protected boolean isExtensionOn()
protected List<String> getCommonArgs() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected boolean isArgSupported(String arg) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void exec(List<String> args) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionCopyright © 2012-2014 Trajano. All Rights Reserved.