Package aQute.bnd.osgi

Examples of aQute.bnd.osgi.Analyzer.save()


            analyzer.setExportPackage("*");
            analyzer.analyze();
            final Manifest manifest = analyzer.calcManifest();
            analyzer.getJar().setManifest(manifest);
            final File wrappedTempFile = File.createTempFile("wrapped", ".jar");
            analyzer.save(wrappedTempFile, true);
            return wrappedTempFile;
        } catch (Exception e) {
            logger.warn(String.format("Failed to wrap plain %s jar using bnd.", tempFile), e);
            return null;
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.