Package org.apache.sis.internal.unopkg
Class UnoPkg
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.sis.internal.unopkg.UnoPkg
- All Implemented Interfaces:
FilenameFilter,org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="unopkg",
defaultPhase=PACKAGE,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME)
public final class UnoPkg
extends org.apache.maven.plugin.AbstractMojo
implements FilenameFilter
Creates an
.oxt package for OpenOffice.org addins.- Since:
- 0.8
- Version:
- 1.0
- Author:
- Martin Desruisseaux (IRD, 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
-
UnoPkg
public UnoPkg()Invoked by reflection for creating the MOJO.
-
-
Method Details
-
accept
Tests if a specified file should be included in a file list.- Specified by:
acceptin interfaceFilenameFilter- Parameters:
directory- the directory in which the file was found.name- the name of the file.
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionExceptionGenerates the.oxtfile from all.jarfiles found in the target directory.- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Throws:
org.apache.maven.plugin.MojoExecutionException- if the plugin execution failed.
-