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 java.lang.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(java.io.File file)
           
 
Method Summary
 java.io.File getFile()
           
 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
 void setFile(java.io.File file)
           
 java.lang.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(java.io.File file)
Method Detail

setFile

public void setFile(java.io.File file)

getFile

public java.io.File getFile()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getPluginProperties

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

getPomProperties

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

Specified by:
getPomProperties in interface EclipseOsgiPlugin
Returns:
pom properties

getManifestAttribute

public java.lang.String getManifestAttribute(java.lang.String key)
                                      throws java.io.IOException
Specified by:
getManifestAttribute in interface EclipseOsgiPlugin
Throws:
java.io.IOException


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