Package com.caucho.vfs

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


      "/usr/share/php", "/usr/lib/php", "/usr/local/lib/php",
      "/usr/share/pear", "/usr/lib/pear", "/usr/local/lib/pear"
    };

    for (String path : paths) {
      if (pwd.lookup(path).isDirectory()) {
        sb.append(":").append(pwd.lookup(path).getPath());
      }
    }

    setIni("include_path", sb.toString());
View Full Code Here


      "/usr/share/pear", "/usr/lib/pear", "/usr/local/lib/pear"
    };

    for (String path : paths) {
      if (pwd.lookup(path).isDirectory()) {
        sb.append(":").append(pwd.lookup(path).getPath());
      }
    }

    setIni("include_path", sb.toString());
  }
View Full Code Here

    getQuercus().setPwd(pwd);

    // need to set these for non-Resin containers
    if (! Alarm.isTest() && ! getQuercus().isResin()) {
      Vfs.setPwd(pwd);
      WorkDir.setLocalWorkDir(pwd.lookup("WEB-INF/work"));
    }

    getQuercus().init();
    getQuercus().start();
  }
View Full Code Here

      "/usr/share/php", "/usr/lib/php", "/usr/local/lib/php",
      "/usr/share/pear", "/usr/lib/pear", "/usr/local/lib/pear"
    };

    for (String path : paths) {
      if (pwd.lookup(path).isDirectory()) {
        sb.append(":").append(pwd.lookup(path).getPath());
      }
    }

    setIni("include_path", sb.toString());
View Full Code Here

      "/usr/share/pear", "/usr/lib/pear", "/usr/local/lib/pear"
    };

    for (String path : paths) {
      if (pwd.lookup(path).isDirectory()) {
        sb.append(":").append(pwd.lookup(path).getPath());
      }
    }

    setIni("include_path", sb.toString());
  }
View Full Code Here

      for (i = 0; i < patternLength; i++) {
        if (pattern.charAt(i) != '/')
          break;
      }

      path = path.lookup("/");

      pattern = pattern.substring(i);
    }
    else if (Path.isWindows()
             && patternLength > 2 && pattern.charAt(1) == ':') {
View Full Code Here

      prefix = pattern.substring(0, 2);
     
      String driveLetter = pattern.substring(0, 2);
     
      // X:/ - slash is required when looking up root
      path = path.lookup(driveLetter + '/');
     
      pattern = pattern.substring(3);
    }

    ArrayValue result = new ArrayValueImpl();
View Full Code Here

          quercus.setServletContext(deliveryContext.getHttpServletRequest().getSession().getServletContext());
          Path pwd = new FilePath(CmsPropertyHandler.getContextRootPath());
          quercus.setPwd(pwd);
          if (! Alarm.isTest() && ! quercus.isResin()) {
            Vfs.setPwd(pwd);
            WorkDir.setLocalWorkDir(pwd.lookup("WEB-INF/work"));
          }

          quercus.init();
          quercus.start();
         
View Full Code Here

          quercus.setServletContext(scriptController.getRequest().getSession().getServletContext());
          Path pwd = new FilePath(CmsPropertyHandler.getContextRootPath());
          quercus.setPwd(pwd);
          if (! Alarm.isTest() && ! quercus.isResin()) {
            Vfs.setPwd(pwd);
            WorkDir.setLocalWorkDir(pwd.lookup("WEB-INF/work"));
          }

          quercus.init();
          quercus.start();
         
View Full Code Here

      for (i = 0; i < patternLength; i++) {
        if (pattern.charAt(i) != '/')
          break;
      }

      path = path.lookup("/");

      pattern = pattern.substring(i);
    }
    else if (Path.isWindows()
             && patternLength > 2 && pattern.charAt(1) == ':') {
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.