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.
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractPropertiesMojo(List<PropertiesManager> propertiesManagers) -
Method Summary
Modifier and TypeMethodDescriptionprotected PropertiesManagergetPropertiesManager(String resourceExtension) protected static CharsetResolve the configured encoding.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
-
AbstractPropertiesMojo
-
-
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, ornullor empty to keep the manager's default- Returns:
- the character set, or
nullwhen none is configured - Throws:
org.apache.maven.plugin.MojoExecutionException- if the name is not a supported character set
-
getPropertiesManager
-