org.apache.maven.plugin.eclipse.osgiplugin
Interface EclipseOsgiPlugin

All Known Implementing Classes:
AbstractEclipseOsgiPlugin, ExplodedPlugin, PackagedPlugin

public interface EclipseOsgiPlugin

Abstraction of Eclipse plugins

Version:
$Id: EclipseOsgiPlugin.java 728546 2008-12-21 22:56:51Z bentmann $
Author:
Carlos Sanchez

Method Summary
 JarFile getJar()
          Get a jar with the plugin contents
 File getJarFile()
          Get a jar with the plugin contents
 Manifest getManifest()
          Get the plugin Manifest
 String getManifestAttribute(String key)
           
 Properties getPluginProperties()
          Loads the plugin.properties file from a the plugin, usually needed in order to resolve the artifact name.
 Properties getPomProperties()
          Properties to add to the pom
 boolean hasManifest()
          Whether the manifest is present or not
 

Method Detail

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


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.