Class ResourceCompilerMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.sis.util.resources.ResourceCompilerMojo
All Implemented Interfaces:
FilenameFilter, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="compile-resources", defaultPhase=GENERATE_RESOURCES) public class ResourceCompilerMojo extends org.apache.maven.plugin.AbstractMojo implements FilenameFilter
Compiles the international resources that are found in the module from which this mojo is invoked. See the sis-build-helper module for more information.
Since:
0.3
Version:
0.7
Author:
Martin Desruisseaux (Geomatys), Olivier Nouguier (Geomatys)
  • Field Summary

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new resource compiler MOJO.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    accept(File directory, String name)
    Accepts all "*.properties" files.
    void
    Executes the mojo.

    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
  • Constructor Details

    • ResourceCompilerMojo

      public ResourceCompilerMojo()
      Constructs a new resource compiler MOJO.
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Executes the mojo.
      Specified by:
      execute in interface org.apache.maven.plugin.Mojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException - if the plugin execution failed.
    • accept

      public final boolean accept(File directory, String name)
      Accepts all "*.properties" files.
      Specified by:
      accept in interface FilenameFilter
      Parameters:
      directory - the directory.
      name - the file name.
      Returns:
      true if the given file is a property file.