Added SCR's Service-Component to Felix M2 Plugin manifest support.
git-svn-id: https://svn.apache.org/repos/asf/incubator/felix/trunk@397362 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/tools/maven2/maven-osgi-plugin/src/main/java/org/apache/felix/tools/maven/plugin/OsgiManifest.java b/tools/maven2/maven-osgi-plugin/src/main/java/org/apache/felix/tools/maven/plugin/OsgiManifest.java
index acfe237..277c590 100644
--- a/tools/maven2/maven-osgi-plugin/src/main/java/org/apache/felix/tools/maven/plugin/OsgiManifest.java
+++ b/tools/maven2/maven-osgi-plugin/src/main/java/org/apache/felix/tools/maven/plugin/OsgiManifest.java
@@ -58,6 +58,7 @@
private static final String BUNDLE_SOURCE = "Bundle-Source";
private static final String BUNDLE_DATE = "Bundle-Date";
private static final String METADATA_LOCATION = "Metadata-Location";
+ private static final String SERVICE_COMPONENT = "Service-Component";
/**
* Instance variables corresponding to the R4 framework manifest headers
@@ -93,6 +94,7 @@
private String bundleSource;
private String bundleDate;
private String metadataLocation;
+ private String serviceComponent;
private Properties entries = new Properties();
@@ -235,6 +237,11 @@
entries.put( METADATA_LOCATION, getMetadataLocation() );
}
+ if ( getServiceComponent() != null )
+ {
+ entries.put( SERVICE_COMPONENT, getServiceComponent() );
+ }
+
return entries;
}
@@ -509,4 +516,14 @@
{
this.metadataLocation = metadataLocation;
}
+
+ public String getServiceComponent()
+ {
+ return serviceComponent;
+ }
+
+ public void setServiceComponent( String serviceComponent )
+ {
+ this.serviceComponent = serviceComponent;
+ }
}