Added support Export-Service
git-svn-id: https://svn.apache.org/repos/asf/incubator/felix/trunk@264931 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 12ce756..d7a13b8 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
@@ -36,6 +36,7 @@
private String bundleDate;
private String bundleUpdateLocation;
private String bundleSymbolicName;
+ private String exportService;
private String exportPackage;
private String importPackage;
private String metadataLocation;
@@ -59,6 +60,9 @@
entries.put("Bundle-Version", getBundleVersion());
}
*/
+ if (getExportService() != null) {
+ entries.put("Export-Service", getExportService());
+ }
if (getExportPackage() != null) {
entries.put("Export-Package", getExportPackage());
}
@@ -125,6 +129,14 @@
this.bundleVersion = bundleVersion;
}
*/
+ public String getExportService() {
+ return exportService;
+ }
+
+ public void setExportService(String exportService) {
+ this.exportService = exportService;
+ }
+
public String getExportPackage() {
return exportPackage;
}