Class AbstractNative2AsciiMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.native2ascii.mojo.AbstractNative2AsciiMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
Native2AsciiInplaceMojo
,Native2AsciiMojo
public abstract class AbstractNative2AsciiMojo
extends org.apache.maven.plugin.AbstractMojo
- Author:
- David Matějček
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe native encoding the files are in.String[]
Patterns of files that must be excluded.String[]
Patterns of files to include.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Checks all attributes.final void
execute()
protected abstract void
executeTransformation
(Iterator<File> files) Executes the transformation of files.protected abstract File
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
encoding
The native encoding the files are in. -
includes
Patterns of files to include. Default is "**\/*.properties". -
excludes
Patterns of files that must be excluded.
-
-
Constructor Details
-
AbstractNative2AsciiMojo
public AbstractNative2AsciiMojo()
-
-
Method Details
-
execute
public final void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
getSourceDirectory
- Returns:
- the root directory where the plugin should look for files.
-
executeTransformation
protected abstract void executeTransformation(Iterator<File> files) throws org.apache.maven.plugin.MojoExecutionException Executes the transformation of files.- Parameters:
files
-- Throws:
org.apache.maven.plugin.MojoExecutionException
-
checkParameters
protected boolean checkParameters()Checks all attributes. Override if needed.- Returns:
- true if we can continue
-