Package com.caucho.vfs

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


      if (_searchPath != null)
        pwd = _searchPath;
      else
        pwd = Vfs.lookup(systemId).getParent();
     
      String newId = pwd.lookup(systemId).getURL();
      if (! newId.startsWith("error:"))
        systemId = newId;
      else {
        int tail = _systemId.lastIndexOf('/');
        if (tail >= 0)
View Full Code Here


  public boolean isRootScannable(Path root, String packageRoot)
  {
    Path scanRoot = root;
   
    if (packageRoot != null)
      scanRoot = scanRoot.lookup(packageRoot.replace('.', '/'));
     
    if (_scannableRoots == null) {
      if (! Boolean.TRUE.equals(_localScanAll.get())) {
        if (! scanRoot.lookup("META-INF/ejb-jar.xml").canRead()) {
          return false;
View Full Code Here

    if (packageRoot != null)
      scanRoot = scanRoot.lookup(packageRoot.replace('.', '/'));
     
    if (_scannableRoots == null) {
      if (! Boolean.TRUE.equals(_localScanAll.get())) {
        if (! scanRoot.lookup("META-INF/ejb-jar.xml").canRead()) {
          return false;
        }
      }    
   
      if (_ejbUrls.contains(root.getURL())) {
View Full Code Here

            log.log(Level.FINER, e.toString(), e);
          else
            log.warning(e.toString());

          try {
            dir.lookup(name + ".db").remove();
          } catch (IOException e1) {
            log.log(Level.FINEST, e.toString(), e);
          }
        }
      }
View Full Code Here

    try {
      String []list = path.list();

      for (int i = 0; i < list.length; i++) {
        if (path.lookup(list[i]).isDirectory())
          set.add(prefix + list[i] + '/');
        else
          set.add(prefix + list[i]);
      }
    } catch (IOException e) {
View Full Code Here

      }

      else if (subpath.endsWith(sep + "classes") ||
               subpath.equals("classes")) {
        Path resinPath = Vfs.lookupNative(subpath);
        resinPath = resinPath.lookup("com/caucho/util/CauchoSystem.class");
        if (resinPath.exists()) {
          path = subpath.substring(0, subpath.length() - "classes".length());
        }
      }
View Full Code Here

        = new PathByteCodeMatcher(loader, root, packageRoot, listeners);
     
      Path scanRoot = root;

      if (packagePath != null)
        scanRoot = scanRoot.lookup(packagePath);

      scanForClasses(root, scanRoot, scanner, matcher);
    }
  }
View Full Code Here

  {
    Path resinHome = CauchoSystem.getResinHome();

    if (isWin()) {
      if (CauchoSystem.is64Bit())
        return resinHome.lookup("win64");
      else
        return resinHome.lookup("win32");
    }
    else {
      if (CauchoSystem.is64Bit())
View Full Code Here

    if (isWin()) {
      if (CauchoSystem.is64Bit())
        return resinHome.lookup("win64");
      else
        return resinHome.lookup("win32");
    }
    else {
      if (CauchoSystem.is64Bit())
        return resinHome.lookup("libexec64");
      else
View Full Code Here

      else
        return resinHome.lookup("win32");
    }
    else {
      if (CauchoSystem.is64Bit())
        return resinHome.lookup("libexec64");
      else
        return resinHome.lookup("libexec");
    }
  }
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.