Package com.caucho.vfs

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


      resinConf = _resinHome.lookup(resinConfFile);
    }

    // for error messages, show path relative to rootDirectory
    if (! resinConf.exists())
      resinConf = rootDirectory.lookup(resinConfFile);

    return resinConf;
  }
 
  /**
 
View Full Code Here


      _appLocal.set(this, _classLoader);
     
      Path rootDirectory = getRootDirectory();

      Vfs.setPwd(rootDirectory, _classLoader);
      WorkDir.setLocalWorkDir(rootDirectory.lookup("WEB-INF/work"),
                              _classLoader);
     
      EjbManager.setScanAll();
     
      EjbModule.replace(getModuleName(), _classLoader);
View Full Code Here

      WebApp app = getWebApp();
      if (app != null && ! hasConf) {
        Path appDir = app.getRootDirectory();

        DynamicClassLoader dynLoader = app.getEnvironmentClassLoader();
        dynLoader.addLoader(new CompilingLoader(dynLoader, appDir.lookup("WEB-INF/classes")));
        dynLoader.addLoader(new DirectoryLoader(dynLoader, appDir.lookup("WEB-INF/lib")));

        Path webXml = appDir.lookup("WEB-INF/web.xml");

        if (webXml.canRead()) {
View Full Code Here

      if (app != null && ! hasConf) {
        Path appDir = app.getRootDirectory();

        DynamicClassLoader dynLoader = app.getEnvironmentClassLoader();
        dynLoader.addLoader(new CompilingLoader(dynLoader, appDir.lookup("WEB-INF/classes")));
        dynLoader.addLoader(new DirectoryLoader(dynLoader, appDir.lookup("WEB-INF/lib")));

        Path webXml = appDir.lookup("WEB-INF/web.xml");

        if (webXml.canRead()) {
          try {
View Full Code Here

      if (tail.startsWith("/"))
        tail = '.' + tail;

      if (! tail.equals(""))
        path = path.lookup(tail);
    }

    String nativePath = path.getNativePath();

    // server/108j expects case insensitive
View Full Code Here

      }
    }

    if (source != null) {
      systemId = source.getSystemId();
      path = pwd.lookup(systemId);
    }
    else if (systemId != null) {
      pwd = pwd.lookup(systemId).getParent();

      path = pwd.lookup(name);
View Full Code Here

    if (source != null) {
      systemId = source.getSystemId();
      path = pwd.lookup(systemId);
    }
    else if (systemId != null) {
      pwd = pwd.lookup(systemId).getParent();

      path = pwd.lookup(name);
    }
    else
      path = pwd.lookup(name);
View Full Code Here

      path = pwd.lookup(systemId);
    }
    else if (systemId != null) {
      pwd = pwd.lookup(systemId).getParent();

      path = pwd.lookup(name);
    }
    else
      path = pwd.lookup(name);

    _transformer.addCacheDepend(path);
View Full Code Here

      pwd = pwd.lookup(systemId).getParent();

      path = pwd.lookup(name);
    }
    else
      path = pwd.lookup(name);

    _transformer.addCacheDepend(path);

    if (env instanceof Env)
      doc = (Node) ((Env) env).getCache(path);
View Full Code Here

    if (tag == null) {
      String tagLocation = taglib.getTagFilePath(tail);
      Path path = taglib.getPath();

      if (path != null && tagLocation != null) {
        path = path.lookup(tagLocation);

        tag = _tagFileManager.getTag(path, qname.getPrefix(), tagLocation);

        if (tag != null) {
          return tag;
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.