R
- generic type of request used by the mojopublic abstract class AbstractKeyToolRequestMojo<R extends KeyToolRequest> extends AbstractKeyToolMojo
KeyToolRequest
.Modifier | Constructor and Description |
---|---|
protected |
AbstractKeyToolRequestMojo(Class<R> requestType)
Constructor of abstract mojo.
|
Modifier and Type | Method and Description |
---|---|
protected void |
consumeResult(org.apache.maven.shared.utils.cli.javatool.JavaToolResult result)
To consume the keytool comand execution.
|
protected R |
createKeytoolRequest()
To prepare the incoming request, says fill it with mojo parameters.
|
void |
execute() |
protected String |
getCommandlineInfo(org.apache.maven.shared.utils.cli.Commandline commandLine)
Gets a string representation of a
Commandline . |
getMessage, getMessage, getMessage, isSkip, isVerbose, setSkip, setVerbose
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected R createKeytoolRequest()
KeyToolRequest
protected String getCommandlineInfo(org.apache.maven.shared.utils.cli.Commandline commandLine)
Commandline
.
This method creates the string representation by calling commandLine.toString()
by default.
commandLine
- The Commandline
to get a string representation of (can not be null).commandLine
.protected final void consumeResult(org.apache.maven.shared.utils.cli.javatool.JavaToolResult result) throws org.apache.maven.plugin.MojoExecutionException
result
- result of the command line actionorg.apache.maven.plugin.MojoExecutionException
- if the result is not 0 (means something bad occurs)Copyright © 2005–2015 Codehaus. All rights reserved.