Class AbstractKeyToolMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.keytool.AbstractKeyToolMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
ChangeAliasMojo, ChangeKeyPasswordMojo, ChangeStorePasswordMojo, CleanKeyMojo, DeleteAliasMojo, ExportCertificateMojo, GenerateCertificateMojo, GenerateCertificateRequestMojo, GenerateKeyPairMojo, GenerateSecretKeyMojo, ImportCertificateMojo, ImportKeystoreMojo, ListMojo, PrintCertificateMojo, PrintCertificateRequestMojo, PrintCRLFileMojo
public abstract class AbstractKeyToolMojo
extends org.apache.maven.plugin.AbstractMojo
Abstract class that contains fields/methods common to KeyTool Mojo classes.
- Version:
- $Revision$
- Author:
- Sharmarke Aden (saden), $Author$
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCreate the parent directory of the given file location.protected StringgetMessage(String key) Gets a message for a given key from the resource bundle backing the implementation.protected StringgetMessage(String key, Object arg) Gets a message for a given key and the given parameter from the resource bundle backing the implementation.protected StringgetMessage(String key, Object arg1, Object arg2) Gets a message for a given key and the given parameters from the resource bundle backing the implementation.final booleanisSkip()isSkip.final booleanisVerbose.final voidsetSkip(boolean skip) Setter for the fieldskip.final voidsetVerbose(boolean verbose) Setter for the fieldverbose.Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.plugin.Mojo
execute
-
Constructor Details
-
AbstractKeyToolMojo
public AbstractKeyToolMojo()
-
-
Method Details
-
isSkip
public final boolean isSkip()isSkip.
- Returns:
- value of the
skipflag
-
setSkip
public final void setSkip(boolean skip) Setter for the field
skip.- Parameters:
skip- the skip flag value to set.
-
isVerbose
public final boolean isVerbose()isVerbose.
- Returns:
- value of the
verboseflag
-
setVerbose
public final void setVerbose(boolean verbose) Setter for the field
verbose.- Parameters:
verbose- the verbose flag value to set.
-
getMessage
-
getMessage
Gets a message for a given key and the given parameter from the resource bundle backing the implementation.- Parameters:
key- The key of the message to return.arg- argument of the sentence to translate- Returns:
- The message with key
keyfrom the resource bundle backing the implementation.
-
getMessage
Gets a message for a given key and the given parameters from the resource bundle backing the implementation.- Parameters:
key- The key of the message to return.arg1- first argument of the sentence to translatearg2- second argument of the sentence to translate- Returns:
- The message with key
keyfrom the resource bundle backing the implementation.
-
createParentDirIfNecessary
Create the parent directory of the given file location.- Parameters:
file- file location to check
-