Package com.caucho.vfs

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


    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


          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

    getQuercus().setPwd(pwd);

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

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

    String scriptPath = QuercusRequestAdapter.getPageServletPath(req);
    String pathInfo = QuercusRequestAdapter.getPagePathInfo(req);

    Path pwd = new FilePath(System.getProperty("user.dir"));

    Path path = pwd.lookup(_config.getServletContext().getRealPath(scriptPath));

    if (path.isFile())
      return path;

    // XXX: include
View Full Code Here

    if (pathInfo != null)
      fullPath = scriptPath + pathInfo;
    else
      fullPath = scriptPath;

    return pwd.lookup(_config.getServletContext().getRealPath(fullPath));
  }

  /**
   * Returns true when under the production environment
   * Appengine specific.
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

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.