org.apache.maven.plugin.eclipse.writers
Class EclipseOSGiManifestWriter

java.lang.Object
  extended by org.apache.maven.plugin.eclipse.writers.AbstractEclipseWriter
      extended by org.apache.maven.plugin.eclipse.writers.EclipseOSGiManifestWriter
All Implemented Interfaces:
EclipseWriter

Deprecated. use Maven Bundle plugin from Felix

public class EclipseOSGiManifestWriter
extends AbstractEclipseWriter

The EclipseOSGiManifestWriter ensures that value of the "Bundle-Classpath" property in META-INF/MANIFEST.MF is synchronized with the POM by adding all dependencies that don't have the scope provided.


Field Summary
static String ENTRY_BUNDLE_CLASSPATH
          Deprecated. Bundle classpath: updated with the list of dependencies.
static String ENTRY_BUNDLE_NAME
          Deprecated. Bundle name: updated with the project name.
static String ENTRY_BUNDLE_SYMBOLICNAME
          Deprecated. Bundle symbolic name: updated with the artifact id.
static String ENTRY_BUNDLE_VENDOR
          Deprecated. Bundle vendor: updated with the organization name (if set in the POM).
static String ENTRY_BUNDLE_VERSION
          Deprecated. Bundle version: updated with the project version.
 
Fields inherited from class org.apache.maven.plugin.eclipse.writers.AbstractEclipseWriter
config, log
 
Constructor Summary
EclipseOSGiManifestWriter()
          Deprecated.  
 
Method Summary
protected  String addBundleClasspathEntries()
          Deprecated. Add all libraries that don't have the scope "provided" to the "Bundle-Classpath".
protected static String getNormalizedVersion(String version)
          Deprecated. Normalize a version number, by moving snapshot identifier to the 5th token (first 4 tokens must be numeric for OSGI bundles)
protected  StringBuffer rewriteManifest(File manifestFile)
          Deprecated.  
 void write()
          Deprecated. Main method that should be implemented by the writer to do the work.
 
Methods inherited from class org.apache.maven.plugin.eclipse.writers.AbstractEclipseWriter
init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENTRY_BUNDLE_CLASSPATH

public static final String ENTRY_BUNDLE_CLASSPATH
Deprecated. 
Bundle classpath: updated with the list of dependencies.

See Also:
Constant Field Values

ENTRY_BUNDLE_NAME

public static final String ENTRY_BUNDLE_NAME
Deprecated. 
Bundle name: updated with the project name.

See Also:
Constant Field Values

ENTRY_BUNDLE_SYMBOLICNAME

public static final String ENTRY_BUNDLE_SYMBOLICNAME
Deprecated. 
Bundle symbolic name: updated with the artifact id.

See Also:
Constant Field Values

ENTRY_BUNDLE_VERSION

public static final String ENTRY_BUNDLE_VERSION
Deprecated. 
Bundle version: updated with the project version.

See Also:
Constant Field Values

ENTRY_BUNDLE_VENDOR

public static final String ENTRY_BUNDLE_VENDOR
Deprecated. 
Bundle vendor: updated with the organization name (if set in the POM).

See Also:
Constant Field Values
Constructor Detail

EclipseOSGiManifestWriter

public EclipseOSGiManifestWriter()
Deprecated. 
Method Detail

write

public void write()
           throws MojoExecutionException
Deprecated. 
Description copied from interface: EclipseWriter
Main method that should be implemented by the writer to do the work.

Throws:
MojoExecutionException
See Also:
EclipseWriter.write()

rewriteManifest

protected StringBuffer rewriteManifest(File manifestFile)
                                throws MojoExecutionException
Deprecated. 
Throws:
MojoExecutionException

getNormalizedVersion

protected static String getNormalizedVersion(String version)
Deprecated. 
Normalize a version number, by moving snapshot identifier to the 5th token (first 4 tokens must be numeric for OSGI bundles)

Parameters:
version - original version
Returns:
a normalized version number

addBundleClasspathEntries

protected String addBundleClasspathEntries()
Deprecated. 
Add all libraries that don't have the scope "provided" to the "Bundle-Classpath".

Returns:
complete "Bundle-ClassPath:" entry for manifest


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