Package org.apache.sis.util.resources
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 -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
ResourceCompilerMojo
public ResourceCompilerMojo()Constructs a new resource compiler MOJO.
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionExceptionExecutes the mojo.- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Throws:
org.apache.maven.plugin.MojoExecutionException- if the plugin execution failed.
-
accept
Accepts all"*.properties"files.- Specified by:
acceptin interfaceFilenameFilter- Parameters:
directory- the directory.name- the file name.- Returns:
trueif the given file is a property file.
-