org.apache.maven.plugin.eclipse.osgiplugin
Class AbstractEclipseOsgiPlugin

java.lang.Object
  extended by org.apache.maven.plugin.eclipse.osgiplugin.AbstractEclipseOsgiPlugin
All Implemented Interfaces:
EclipseOsgiPlugin
Direct Known Subclasses:
ExplodedPlugin, PackagedPlugin

public abstract class AbstractEclipseOsgiPlugin
extends Object
implements EclipseOsgiPlugin

Common functionality for both exploded and packaged plugins.

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

Constructor Summary
AbstractEclipseOsgiPlugin(File file)
           
 
Method Summary
 File getFile()
           
 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
 void setFile(File file)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.maven.plugin.eclipse.osgiplugin.EclipseOsgiPlugin
getJar, getJarFile, getManifest, hasManifest
 

Constructor Detail

AbstractEclipseOsgiPlugin

public AbstractEclipseOsgiPlugin(File file)
Method Detail

setFile

public void setFile(File file)

getFile

public File getFile()

toString

public String toString()
Overrides:
toString in class Object

getPluginProperties

public Properties getPluginProperties()
                               throws IOException
Description copied from interface: EclipseOsgiPlugin
Loads the plugin.properties file from a the plugin, usually needed in order to resolve the artifact name.

Specified by:
getPluginProperties in interface EclipseOsgiPlugin
Returns:
loaded Properties (or an empty properties if no plugin.properties is found)
Throws:
IOException - for exceptions while reading the file

getPomProperties

public Properties getPomProperties()
Description copied from interface: EclipseOsgiPlugin
Properties to add to the pom

Specified by:
getPomProperties in interface EclipseOsgiPlugin
Returns:
pom properties

getManifestAttribute

public String getManifestAttribute(String key)
                            throws IOException
Specified by:
getManifestAttribute in interface EclipseOsgiPlugin
Throws:
IOException


Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.