Updating OSGiWrapper to use Builder
Builder.analyze() sets the correct export package version
Change-Id: I6ca85106c8e4ac0d05fa4a75ee4ff6573957f2db
diff --git a/utils/osgiwrap/src/main/java/org/onlab/osgiwrap/OSGiWrapper.java b/utils/osgiwrap/src/main/java/org/onlab/osgiwrap/OSGiWrapper.java
index dbac5f3..69d61df 100644
--- a/utils/osgiwrap/src/main/java/org/onlab/osgiwrap/OSGiWrapper.java
+++ b/utils/osgiwrap/src/main/java/org/onlab/osgiwrap/OSGiWrapper.java
@@ -17,6 +17,7 @@
package org.onlab.osgiwrap;
import aQute.bnd.osgi.Analyzer;
+import aQute.bnd.osgi.Builder;
import aQute.bnd.osgi.Jar;
import com.google.common.base.Joiner;
import com.google.common.base.MoreObjects;
@@ -136,7 +137,7 @@
}
public boolean execute() {
- Analyzer analyzer = new Analyzer();
+ Analyzer analyzer = new Builder();
try {
Jar jar = new Jar(new File(inputJar)); // where our data is