org.codehaus.mojo.keytool
Class AbstractKeyToolRequestWithKeyStoreParametersMojo<R extends KeyToolRequestWithKeyStoreParameters>
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.keytool.AbstractKeyToolMojo
org.codehaus.mojo.keytool.AbstractKeyToolRequestMojo<R>
org.codehaus.mojo.keytool.AbstractKeyToolRequestWithKeyStoreParametersMojo<R>
- Type Parameters:
R
- generic type of request used by the mojo
- All Implemented Interfaces:
- ContextEnabled, Mojo
- Direct Known Subclasses:
- AbstractKeyToolRequestWithKeyStoreAndAliasParametersMojo, ChangeStorePasswordMojo
public abstract class AbstractKeyToolRequestWithKeyStoreParametersMojo<R extends KeyToolRequestWithKeyStoreParameters>
- extends AbstractKeyToolRequestMojo<R>
Abstract mojo to execute a KeyToolRequestWithKeyStoreParameters
request.
- Since:
- 1.2
- Author:
- tchemit
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractKeyToolRequestWithKeyStoreParametersMojo
public AbstractKeyToolRequestWithKeyStoreParametersMojo(Class<R> requestType)
- Constructor of abstract mojo.
- Parameters:
requestType
- type of keytool request used by the mojo
createKeytoolRequest
protected R createKeytoolRequest()
- To prepare the incoming request, says fill it with mojo parameters.
- Overrides:
createKeytoolRequest
in class AbstractKeyToolRequestMojo<R extends KeyToolRequestWithKeyStoreParameters>
- Returns:
- the created keytool request
- See Also:
KeyToolRequest
getCommandlineInfo
protected String getCommandlineInfo(org.codehaus.plexus.util.cli.Commandline commandLine)
- Gets a string representation of a
Commandline
.
This method creates the string representation by calling commandLine.toString()
by default.
- Overrides:
getCommandlineInfo
in class AbstractKeyToolRequestMojo<R extends KeyToolRequestWithKeyStoreParameters>
- Parameters:
commandLine
- The Commandline
to get a string representation of (can not be null).
- Returns:
- The string representation of
commandLine
.
createParentDirIfNecessary
protected final void createParentDirIfNecessary(String file)
- Create the parent directory of the given file location.
- Parameters:
file
- file location to check
Copyright © 2005-2012 Codehaus. All Rights Reserved.