Interface EclipseOsgiPlugin

All Known Implementing Classes:
AbstractEclipseOsgiPlugin, ExplodedPlugin, PackagedPlugin

public interface EclipseOsgiPlugin
Abstraction of Eclipse plugins
Version:
$Id$
Author:
Carlos Sanchez
  • Method Details

    • getManifest

      Manifest getManifest() throws IOException
      Get the plugin Manifest
      Returns:
      the Manifest or null if it has no manifest
      Throws:
      IOException
    • hasManifest

      boolean hasManifest() throws IOException
      Whether the manifest is present or not
      Returns:
      true if the manifest exists, false otherwise
      Throws:
      IOException
    • getJar

      JarFile getJar() throws IOException
      Get a jar with the plugin contents
      Returns:
      the jar
      Throws:
      IOException
    • getJarFile

      File getJarFile() throws IOException
      Get a jar with the plugin contents
      Returns:
      the jar file
      Throws:
      IOException
    • getPluginProperties

      Properties getPluginProperties() throws IOException
      Loads the plugin.properties file from a the plugin, usually needed in order to resolve the artifact name.
      Returns:
      loaded Properties (or an empty properties if no plugin.properties is found)
      Throws:
      IOException - for exceptions while reading the file
    • getPomProperties

      Properties getPomProperties()
      Properties to add to the pom
      Returns:
      pom properties
    • getManifestAttribute

      String getManifestAttribute(String key) throws IOException
      Throws:
      IOException