import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
-import aQute.lib.osgi.Builder;
-import aQute.lib.osgi.Constants;
-import aQute.lib.osgi.Jar;
+import aQute.bnd.osgi.Builder;
+import aQute.bnd.osgi.Constants;
+import aQute.bnd.osgi.Jar;
public class BndProcess extends AbstractHandler implements Constants {
import org.springframework.util.AntPathMatcher;
import org.springframework.util.PathMatcher;
-import aQute.lib.osgi.Jar;
+import aQute.bnd.osgi.Jar;
/**
* Download a software distribution and generates the related OSGi bundles from
import org.osgi.framework.Version;
import org.springframework.beans.factory.BeanNameAware;
-import aQute.lib.osgi.Builder;
-import aQute.lib.osgi.Constants;
-import aQute.lib.osgi.Jar;
+import aQute.bnd.osgi.Builder;
+import aQute.bnd.osgi.Constants;
+import aQute.bnd.osgi.Jar;
/** Utilities around the BND library, which manipulates OSGi metadata. */
public class BndWrapper implements Constants, CategorizedNameVersion,
} catch (Exception e) {
throw new SlcException("Cannot wrap jar", e);
} finally {
- b.close();
- if (jar != null)
- jar.close();
+ try {
+ b.close();
+ if (jar != null)
+ jar.close();
+ } catch (Exception e) {
+ // silent
+ }
}
}
import org.eclipse.aether.artifact.Artifact;
import org.eclipse.aether.artifact.DefaultArtifact;
-import aQute.lib.osgi.Jar;
+import aQute.bnd.osgi.Jar;
public class UriWrapper extends BndWrapper implements Runnable {
private final static Log log = LogFactory.getLog(UriWrapper.class);