Package org.codehaus.mojo.keytool
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:
AbstractKeyToolRequestMojo,CleanKeyMojo
public abstract class AbstractKeyToolMojo extends org.apache.maven.plugin.AbstractMojoAbstract class that contains fields/methods common to KeyTool Mojo classes.- Version:
- $Revision$
-
-
Constructor Summary
Constructors Constructor Description AbstractKeyToolMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetMessage(java.lang.String key)Gets a message for a given key from the resource bundle backing the implementation.protected java.lang.StringgetMessage(java.lang.String key, java.lang.Object arg)Gets a message for a given key and the given parameter from the resource bundle backing the implementation.private java.lang.StringgetMessage(java.lang.String key, java.lang.Object[] args)Gets a message for a given key from the resource bundle backing the implementation.protected java.lang.StringgetMessage(java.lang.String key, java.lang.Object arg1, java.lang.Object arg2)Gets a message for a given key and the given parameters from the resource bundle backing the implementation.booleanisSkip()booleanisVerbose()voidsetSkip(boolean skip)voidsetVerbose(boolean verbose)-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Field Detail
-
skip
@Parameter(defaultValue="false") private boolean skip
Set totrueto disable the plugin.- Since:
- 1.1
-
verbose
@Parameter(defaultValue="false") private boolean verbose
Enable verbose mode (in mojo and in keytool command). See options.
-
-
Method Detail
-
isSkip
public final boolean isSkip()
- Returns:
- value of the
skipflag
-
setSkip
public final void setSkip(boolean skip)
- Parameters:
skip- the skip flag value to set.
-
isVerbose
public final boolean isVerbose()
- Returns:
- value of the
verboseflag
-
setVerbose
public final void setVerbose(boolean verbose)
- Parameters:
verbose- the verbose flag value to set.
-
getMessage
private java.lang.String getMessage(java.lang.String key, java.lang.Object[] args)Gets a message for a given key from the resource bundle backing the implementation.- Parameters:
key- The key of the message to return (cano not be null).args- Arguments to format the message with ornull.- Returns:
- The message with key
keyfrom the resource bundle backing the implementation.
-
getMessage
protected java.lang.String getMessage(java.lang.String key)
Gets a message for a given key from the resource bundle backing the implementation.- Parameters:
key- The key of the message to return.- Returns:
- The message with key
keyfrom the resource bundle backing the implementation.
-
getMessage
protected java.lang.String getMessage(java.lang.String key, java.lang.Object arg)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
protected java.lang.String getMessage(java.lang.String key, java.lang.Object arg1, java.lang.Object arg2)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.
-
-