Brian O'Connor

Updating OSGiWrapper to use Builder

Builder.analyze() sets the correct export package version

Change-Id: I6ca85106c8e4ac0d05fa4a75ee4ff6573957f2db
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
17 package org.onlab.osgiwrap; 17 package org.onlab.osgiwrap;
18 18
19 import aQute.bnd.osgi.Analyzer; 19 import aQute.bnd.osgi.Analyzer;
20 +import aQute.bnd.osgi.Builder;
20 import aQute.bnd.osgi.Jar; 21 import aQute.bnd.osgi.Jar;
21 import com.google.common.base.Joiner; 22 import com.google.common.base.Joiner;
22 import com.google.common.base.MoreObjects; 23 import com.google.common.base.MoreObjects;
...@@ -136,7 +137,7 @@ public class OSGiWrapper { ...@@ -136,7 +137,7 @@ public class OSGiWrapper {
136 } 137 }
137 138
138 public boolean execute() { 139 public boolean execute() {
139 - Analyzer analyzer = new Analyzer(); 140 + Analyzer analyzer = new Builder();
140 try { 141 try {
141 142
142 Jar jar = new Jar(new File(inputJar)); // where our data is 143 Jar jar = new Jar(new File(inputJar)); // where our data is
......