Interface EclipseOsgiPlugin
-
- All Known Implementing Classes:
AbstractEclipseOsgiPlugin
,ExplodedPlugin
,PackagedPlugin
public interface EclipseOsgiPlugin
Abstraction of Eclipse plugins- Version:
- $Id$
- Author:
- Carlos Sanchez
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JarFile
getJar()
Get a jar with the plugin contentsFile
getJarFile()
Get a jar with the plugin contentsManifest
getManifest()
Get the plugin ManifestString
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 pomboolean
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
-
-