Class AbstractPropertiesMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.properties.AbstractPropertiesMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AbstractWritePropertiesMojo, ReadPropertiesMojo

public abstract class AbstractPropertiesMojo extends org.apache.maven.plugin.AbstractMojo
Abstract Mojo with Properties managers support.
  • Constructor Details

  • Method Details

    • toCharset

      protected static Charset toCharset(String encoding) throws org.apache.maven.plugin.MojoExecutionException
      Resolve the configured encoding.
      Parameters:
      encoding - name of a character set, or null or empty to keep the manager's default
      Returns:
      the character set, or null when none is configured
      Throws:
      org.apache.maven.plugin.MojoExecutionException - if the name is not a supported character set
    • getPropertiesManager

      protected PropertiesManager getPropertiesManager(String resourceExtension)