|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.keytool.AbstractKeyToolMojo
org.codehaus.mojo.keytool.AbstractKeyToolRequestMojo<R>
R
- generic type of request used by the mojopublic abstract class AbstractKeyToolRequestMojo<R extends KeyToolRequest>
Abstract keytool mojo implementing the KeyToolRequest
.
Field Summary |
---|
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
protected |
AbstractKeyToolRequestMojo(Class<R> requestType)
Constructor of abstract mojo. |
Method Summary | |
---|---|
protected void |
consumeResult(KeyToolResult 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.codehaus.plexus.util.cli.Commandline commandLine)
Gets a string representation of a Commandline . |
Methods inherited from class org.codehaus.mojo.keytool.AbstractKeyToolMojo |
---|
getMessage, getMessage, getMessage, isSkip, isVerbose, setSkip, setVerbose |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
---|
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractKeyToolRequestMojo(Class<R> requestType)
requestType
- type of keytool request used by the mojoMethod Detail |
---|
public final void execute() throws MojoExecutionException
MojoExecutionException
protected R createKeytoolRequest()
KeyToolRequest
protected String getCommandlineInfo(org.codehaus.plexus.util.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(KeyToolResult result) throws MojoExecutionException
result
- result of the command line action
MojoExecutionException
- if the result is not 0 (means something bad occurs)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |