Class AbstractKeyToolMojo

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean skip
      Set to true to disable the plugin.
      private boolean verbose
      Enable verbose mode (in mojo and in keytool command).
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void createParentDirIfNecessary​(java.lang.String file)
      Create the parent directory of the given file location.
      protected java.lang.String getMessage​(java.lang.String key)
      Gets a message for a given key from the resource bundle backing the implementation.
      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.
      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.
      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.
      boolean isSkip()
      isSkip.
      boolean isVerbose()
      isVerbose.
      void setSkip​(boolean skip)
      Setter for the field skip.
      void setVerbose​(boolean verbose)
      Setter for the field verbose.
      • 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
      • Methods inherited from interface org.apache.maven.plugin.Mojo

        execute
    • Field Detail

      • skip

        @Parameter(defaultValue="false")
        private boolean skip
        Set to true to disable the plugin.
        Since:
        1.1
      • verbose

        @Parameter(defaultValue="false")
        private boolean verbose
        Enable verbose mode (in mojo and in keytool command). See keytool options.
    • Constructor Detail

      • AbstractKeyToolMojo

        public AbstractKeyToolMojo()
    • Method Detail

      • isSkip

        public final boolean isSkip()

        isSkip.

        Returns:
        value of the skip flag
      • 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 verbose flag
      • setVerbose

        public final void setVerbose​(boolean verbose)

        Setter for the field 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 or null.
        Returns:
        The message with key key from 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 key from 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 key from 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 translate
        arg2 - second argument of the sentence to translate
        Returns:
        The message with key key from the resource bundle backing the implementation.
      • createParentDirIfNecessary

        protected void createParentDirIfNecessary​(java.lang.String file)
        Create the parent directory of the given file location.
        Parameters:
        file - file location to check