Examples of BundleFile


Examples of dtool.dub.DubBundle.BundleFile

  public static DubBundleChecker bundle(String errorMsgStart, String name) {
    return new DubBundleChecker(IGNORE_PATH, name, errorMsgStart, IGNORE_STR, null, IGNORE_RAW_DEPS, IGNORE_DEPS);
  }
 
  public static BundleFile bf(String filePath) {
    return new BundleFile(filePath, false);
  }
View Full Code Here

Examples of dtool.dub.DubBundle.BundleFile

    jsonReader.consumeExpected(JsonToken.BEGIN_ARRAY);
   
    ArrayList<BundleFile> bundleFiles = new ArrayList<>();
   
    while(jsonReader.hasNext()) {
      BundleFile bundleFile = parseFile(jsonReader);
      bundleFiles.add(bundleFile);
    }
   
    jsonReader.consumeExpected(JsonToken.END_ARRAY);
    return bundleFiles;
View Full Code Here

Examples of fr.adrienbrault.idea.symfony2plugin.util.dict.BundleFile

        }

        @Override
        public boolean processFile(VirtualFile virtualFile) {
            if(!virtualFile.isDirectory()) {
                bundleFiles.add(new BundleFile(this.symfonyBundle, virtualFile, project));
            }

            return true;
        }
View Full Code Here

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

    public boolean isSigned() {
      return entrySigners.length > 0;
    }

    public void verify() throws IOException, InvalidContentException {
      BundleFile currentContent = content;
      if (currentContent == null)
        throw new InvalidContentException("The content was not set", null); //$NON-NLS-1$
      BundleEntry entry = null;
      SecurityException exception = null;
      try {
        entry = currentContent.getEntry(entryName);
      } catch (SecurityException e) {
        exception = e;
      }
      if (entry == null)
        throw new InvalidContentException(NLS.bind(SignedContentMessages.file_is_removed_from_jar, entryName, currentContent.getBaseFile().toString()), exception);
      entry.getBytes();
    }
View Full Code Here

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

    this.signedBundle = signedContent;
    this.supportFlags = supportFlags;
  }

  public SignedContentImpl process() throws IOException, InvalidKeyException, SignatureException, CertificateException, NoSuchAlgorithmException, NoSuchProviderException {
    BundleFile wrappedBundleFile = signedBundle.getWrappedBundleFile();
    BundleEntry be = wrappedBundleFile.getEntry(META_INF_MANIFEST_MF);
    if (be == null)
      return createUnsignedContent();

    // read all the signature block file names into a list
    Enumeration en = wrappedBundleFile.getEntryPaths(META_INF);
    List signers = new ArrayList(2);
    while (en.hasMoreElements()) {
      String name = (String) en.nextElement();
      if ((name.endsWith(DOT_DSA) || name.endsWith(DOT_RSA)) && name.indexOf('/') == name.lastIndexOf('/'))
        signers.add(name);
View Full Code Here

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

    return result;
  }

  private String searchVariants(BaseData bundledata, String path) {
    for (int i = 0; i < LIB_VARIANTS.length; i++) {
      BundleFile baseBundleFile = bundledata.getBundleFile();
      BundleEntry libEntry = baseBundleFile.getEntry(LIB_VARIANTS[i] + path);
      if (libEntry != null) {
        File libFile = baseBundleFile.getFile(LIB_VARIANTS[i] + path, true);
        if (libFile == null)
          return null;
        // see bug 88697 - HP requires libraries to have executable permissions
        if (org.eclipse.osgi.service.environment.Constants.OS_HPUX.equals(EclipseEnvironmentInfo.getDefault().getOS())) {
          try {
View Full Code Here

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

   * @param sourcedata the source EquionoxData to search for the classpath
   * @param sourcedomain the source domain to used by the new ClasspathEntry
   * @return a new ClasspathEntry for the requested classpath or null if the source does not exist.
   */
  public ClasspathEntry getClasspath(String cp, BaseData sourcedata, ProtectionDomain sourcedomain) {
    BundleFile bundlefile = null;
    File file;
    BundleEntry cpEntry = sourcedata.getBundleFile().getEntry(cp);
    // check for internal library directories in a bundle jar file
    if (cpEntry != null && cpEntry.getName().endsWith("/")) //$NON-NLS-1$
      bundlefile = createBundleFile(cp, sourcedata);
View Full Code Here

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

   */
  public ClasspathEntry getExternalClassPath(String cp, BaseData sourcedata, ProtectionDomain sourcedomain) {
    File file = new File(cp);
    if (!file.isAbsolute())
      return null;
    BundleFile bundlefile = createBundleFile(file, sourcedata);
    if (bundlefile != null)
      return createClassPathEntry(bundlefile, sourcedomain, sourcedata);
    return null;
  }
View Full Code Here

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

        bundleFile = getAdaptor().createBundleFile(osgiBase, this);
      } catch (IOException e) {
        // should not happen
      }
    else
      bundleFile = new BundleFile(osgiBase) {
        public File getFile(String path, boolean nativeCode) {
          return null;
        }

        public BundleEntry getEntry(String path) {
View Full Code Here

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

    File file = new File(cp);
    if (!file.isAbsolute())
      return hostData;
    FragmentClasspath[] fragCP = manager.getFragmentClasspaths();
    for (int i = 0; i < fragCP.length; i++) {
      BundleFile fragBase = fragCP[i].getBundleData().getBundleFile();
      File fragFile = fragBase.getBaseFile();
      if (fragFile != null && file.getPath().startsWith(fragFile.getPath()))
        return fragCP[i].getBundleData();
    }
    return fromFragment ? null : hostData;
  }
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.