Package com.caucho.vfs

Examples of com.caucho.vfs.Path.lookup()


      Path path = Vfs.lookupNative(name);

      if (name.endsWith(".jar") || name.endsWith(".zip"))
        path = JarPath.create(path);

      if (path != null && path.lookup(clName).canRead()) {
        return path.lookup(clName).getLastModified();
      }
    }

    String name = classPath.substring(head);
View Full Code Here


      if (name.endsWith(".jar") || name.endsWith(".zip"))
        path = JarPath.create(path);

      if (path != null && path.lookup(clName).canRead()) {
        return path.lookup(clName).getLastModified();
      }
    }

    String name = classPath.substring(head);
    Path path = Vfs.lookupNative(name);
View Full Code Here

    Path path = Vfs.lookupNative(name);

    if (name.endsWith(".jar") || name.endsWith(".zip"))
      path = JarPath.create(path);

    if (path != null && path.lookup(clName).canRead())
      return path.lookup(clName).getLastModified();
   
    return 0;
  }
View Full Code Here

    if (name.endsWith(".jar") || name.endsWith(".zip"))
      path = JarPath.create(path);

    if (path != null && path.lookup(clName).canRead())
      return path.lookup(clName).getLastModified();
   
    return 0;
  }

  private void printHeader() throws IOException
View Full Code Here

      if (_rolloverCount <= 0 || matchList.size() < _rolloverCount)
        return;

      for (int i = 0; i + _rolloverCount < matchList.size(); i++) {
        try {
          parent.lookup(matchList.get(i)).remove();
        } catch (Throwable e) {
        }
      }
    } catch (Throwable e) {
    }
View Full Code Here

      cb.append('/');
      cb.append(f);

      // return pwd.lookup(ctx.getRealPath(cb.toString()));
      return pwd.lookup(cb.toString());
    }

    return null;
  }
View Full Code Here

    for (int i = list.length - 1; i >= 0; i--) {
      if (list[i].startsWith(".") ||
          extension != null && ! list[i].endsWith(extension))
        continue;

      pushInclude(dir.lookup(list[i]).getPath());
    }
  }

  private int parseNameToken(CharBuffer name, int ch)
    throws IOException, SAXException
View Full Code Here

        loadJarTlds(taglibs, ((JarPath) subPath).getContainer(), "META-INF");
      else if (subPath.getPath().endsWith(".jar")) {
        loadJarTlds(taglibs, subPath, "META-INF");
      }
      else
        loadAllTlds(taglibs, subPath.lookup("META-INF"), 64, "META-INF");
    }

    if (fileSet != null)
      loadAllTlds(taglibs, fileSet);
View Full Code Here

      if (subPath.getPath().endsWith(".jar")) {
        loadJarTlds(taglibs, subPath, prefix);
      }
      else if (prefix != null && ! prefix.equals(""))
        loadAllTlds(taglibs, subPath.lookup(prefix), 64, prefix);
      else
        loadAllTlds(taglibs, subPath.lookup("META-INF"), 64, "META-INF");
    }
  }
View Full Code Here

        loadJarTlds(taglibs, subPath, prefix);
      }
      else if (prefix != null && ! prefix.equals(""))
        loadAllTlds(taglibs, subPath.lookup(prefix), 64, prefix);
      else
        loadAllTlds(taglibs, subPath.lookup("META-INF"), 64, "META-INF");
    }
  }

  /*
  ArrayList<TldTaglib> getTaglibs()
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.