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 Details

    • encoding

      @Parameter(defaultValue="${project.build.sourceEncoding}") public String encoding
      The native encoding the files are in.
    • includes

      @Parameter public String[] includes
      Patterns of files to include. Default is "**\/*.properties".
    • excludes

      @Parameter public String[] 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

      protected abstract File 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