Package org.eclipse.osgi.baseadaptor.bundlefile

Examples of org.eclipse.osgi.baseadaptor.bundlefile.BundleEntry


    if (!hasPackageInfo(cpEntry, loader)) {
      initialized = true;
      manifest = null;
      return manifest;
    }
    BundleEntry mfEntry = cpEntry.getBundleFile().getEntry(org.eclipse.osgi.framework.internal.core.Constants.OSGI_BUNDLE_MANIFEST);
    if (mfEntry != null)
      try {
        InputStream manIn = mfEntry.getInputStream();
        manifest = new Manifest(manIn);
        manIn.close();
      } catch (IOException e) {
        // do nothing
      }
View Full Code Here


    if (patchFiles == null) // none available just use the wrapped content
      return wrapped.getEntry(path);
    if ("META-INF/MANIFEST.MF".equals(path)) //$NON-NLS-1$
      return wrapped.getEntry(path); // don't patch manifest
    for (int i = 0; i < patchFiles.length; i++) {
      BundleEntry entry = patchFiles[i].getEntry(path);
      if (entry != null) { // found patched content; return it
        if (PFConfigurator.DEBUG)
          System.out.println("Found patch for \"" + path + "\" in \"" + patchFiles[i] + "\""); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$
        return entry;
      }
View Full Code Here

TOP

Related Classes of org.eclipse.osgi.baseadaptor.bundlefile.BundleEntry

Copyright © 2018 www.massapicom. 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.