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
 java.util.jar.JarFile getJar()
          Get a jar with the plugin contents
 java.io.File getJarFile()
          Get a jar with the plugin contents
 java.util.jar.Manifest getManifest()
          Get the plugin Manifest
 java.lang.String getManifestAttribute(java.lang.String key)
           
 java.util.Properties getPluginProperties()
          Loads the plugin.properties file from a the plugin, usually needed in order to resolve the artifact name.
 java.util.Properties getPomProperties()
          Properties to add to the pom
 boolean hasManifest()
          Whether the manifest is present or not
 

Method Detail

getManifest

java.util.jar.Manifest getManifest()
                                   throws java.io.IOException
Get the plugin Manifest

Returns:
the Manifest or null if it has no manifest
Throws:
java.io.IOException

hasManifest

boolean hasManifest()
                    throws java.io.IOException
Whether the manifest is present or not

Returns:
true if the manifest exists, false otherwise
Throws:
java.io.IOException

getJar

java.util.jar.JarFile getJar()
                             throws java.io.IOException
Get a jar with the plugin contents

Returns:
the jar
Throws:
java.io.IOException

getJarFile

java.io.File getJarFile()
                        throws java.io.IOException
Get a jar with the plugin contents

Returns:
the jar file
Throws:
java.io.IOException

getPluginProperties

java.util.Properties getPluginProperties()
                                         throws java.io.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:
java.io.IOException - for exceptions while reading the file

getPomProperties

java.util.Properties getPomProperties()
Properties to add to the pom

Returns:
pom properties

getManifestAttribute

java.lang.String getManifestAttribute(java.lang.String key)
                                      throws java.io.IOException
Throws:
java.io.IOException


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