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
    Constructor
    Description
    Invoked by reflection for creating the MOJO.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(File directory, String name)
    Tests if a specified file should be included in a file list.
    void
    Generates the .oxt file from all .jar files found in the target directory.

    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

    • UnoPkg

      public UnoPkg()
      Invoked by reflection for creating the MOJO.
  • Method Details

    • accept

      public boolean accept(File directory, String name)
      Tests if a specified file should be included in a file list.
      Specified by:
      accept in interface FilenameFilter
      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.MojoExecutionException
      Generates the .oxt file from all .jar files found in the target directory.
      Specified by:
      execute in interface org.apache.maven.plugin.Mojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException - if the plugin execution failed.