Examples of JarPath


Examples of com.caucho.vfs.JarPath

  _pathMap.clear();
   
      for (int i = 0; i < jars.size(); i++) {
  JarEntry jarEntry = jars.get(i);

  JarPath jarPath = jarEntry.getJarPath();

  jarPath.closeJar();
      }
    }
  }
View Full Code Here

Examples of com.caucho.vfs.JarPath

    if (path.isDirectory()) {
      manifestPath = path.lookup("META-INF/MANIFEST.MF");
      contextPath = path;
    }
    else {
      JarPath jar = JarPath.create(path);
      manifestPath = jar.lookup("META-INF/MANIFEST.MF");
      contextPath = path.getParent();
    }

    if (manifestPath.canRead()) {
      ReadStream is = manifestPath.openRead();
View Full Code Here

Examples of com.caucho.vfs.JarPath

                  + String.format("%o", jar.getMode())
                  + " path=" + jar.getNativePath() + ")");
      return;
    }
   
    JarPath jarPath = JarPath.create(jar);
    JarEntry jarEntry = new JarEntry(jarPath);

    if (getClassLoader() != null) {
      if (! getClassLoader().addURL(jarPath))
        return;
View Full Code Here

Examples of com.caucho.vfs.JarPath

  @Override
  protected void buildClassPath(ArrayList<String> pathList)
  {
    for (int i = 0; i < _jarList.size(); i++) {
      JarEntry jarEntry = _jarList.get(i);
      JarPath jar = jarEntry.getJarPath();
     
      String path = jar.getContainer().getNativePath();

      if (! pathList.contains(path))
        pathList.add(path);
    }
  }
View Full Code Here

Examples of com.caucho.vfs.JarPath

    }
    else {
      // Find the path corresponding to the class
      for (int i = 0; i < _jarList.size(); i++) {
        JarEntry jarEntry = _jarList.get(i);
        JarPath path = jarEntry.getJarPath();
        Jar jar = path.getJar();
       
        try {
          ZipEntry zipEntry = jar.getZipEntry(pathName);

        // if (filePath.canRead() && filePath.getLength() > 0) {
       
          if (zipEntry != null && zipEntry.getSize() > 0) {
            Path filePath = path.lookup(pathName);
         
            return createEntry(name, pathName, jarEntry, filePath);
          }
        } catch (IOException e) {
          log.log(Level.FINER, e.toString(), e);
View Full Code Here

Examples of com.caucho.vfs.JarPath

        _pathMap.clear();
   
      for (int i = 0; i < jars.size(); i++) {
        JarEntry jarEntry = jars.get(i);

        JarPath jarPath = jarEntry.getJarPath();

        jarPath.closeJar();
      }
    }
  }
View Full Code Here

Examples of com.caucho.vfs.JarPath

    if (packageRoot != null)
      packagePath = packageRoot.replace('.', '/');

    if (root instanceof JarPath) {
      JarPath jarRoot = (JarPath) root;
      Path jar = jarRoot.getContainer();
     
      JarByteCodeMatcher matcher
        = new JarByteCodeMatcher(loader, root, packageRoot, listeners);

      scanForJarClasses(jar, packageRoot,
View Full Code Here

Examples of com.caucho.vfs.JarPath

    if (path.isDirectory()) {
      manifestPath = path.lookup("META-INF/MANIFEST.MF");
      contextPath = path;
    }
    else {
      JarPath jar = JarPath.create(path);
      manifestPath = jar.lookup("META-INF/MANIFEST.MF");
      contextPath = path.getParent();
    }

    if (manifestPath.canRead()) {
      ReadStream is = manifestPath.openRead();
View Full Code Here

Examples of com.caucho.vfs.JarPath

   */
  protected CodeSource getCodeSource(Path path)
  {
    try {
      if (path instanceof JarPath) {
        JarPath jarPath = (JarPath) path;
       
        path = jarPath.getContainer();
      }
     
      return new CodeSource(new URL(path.getURL()),
                            (Certificate []) path.getCertificates());
    } catch (Exception e) {
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.