Package com.caucho.vfs

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


    }
    else {
      if (CauchoSystem.is64Bit())
        return resinHome.lookup("libexec64");
      else
        return resinHome.lookup("libexec");
    }
  }

  private Path getLib()
  {
View Full Code Here


  private Path getLib()
  {
    Path libexec = getLibexec();

    if (isMacOSX()) {
      return libexec.lookup("lib" + _libraryName + ".jnilib");
    }
    else if (isWin()) {
      return libexec.lookup(_libraryName + ".dll");
    }
    else {
View Full Code Here

    if (isMacOSX()) {
      return libexec.lookup("lib" + _libraryName + ".jnilib");
    }
    else if (isWin()) {
      return libexec.lookup(_libraryName + ".dll");
    }
    else {
      return libexec.lookup("lib" + _libraryName + ".so");
    }
  }
View Full Code Here

    }
    else if (isWin()) {
      return libexec.lookup(_libraryName + ".dll");
    }
    else {
      return libexec.lookup("lib" + _libraryName + ".so");
    }
  }
 
  @Override
  public String toString()
View Full Code Here

      throw new IllegalStateException(L.l("{0} requires an active {1}",
                                          TempFileService.class.getSimpleName(),
                                          RootDirectorySystem.class.getSimpleName()));

    Path dataDirectory = rootService.getDataDirectory();
    TempFileManager manager = new TempFileManager(dataDirectory.lookup("tmp"));

    return createAndAddService(manager);
  }
 
  public static TempFileService createAndAddService(TempFileManager manager)
View Full Code Here

        String name = list[i];

        if (! name.endsWith(".ra"))
          continue;

        InputStream is = path.lookup(name).openRead();
        try {
          ConnectorConfig conn = new ConnectorConfig();

          new Config().configure(conn, is, "com/caucho/jca/jca.rnc");
View Full Code Here

    List<Path> beansXmlOverride = _injectManager.getBeansXmlOverride(root);

    Path scanRoot = root;

    if (packageRoot != null) {
      scanRoot = scanRoot.lookup(packageRoot.replace('.', '/'));
    }
   
    if (beansXmlOverride == null) {
      // TODO Should resin-beans.xml be included in this check?
      if (packageRoot != null) {
View Full Code Here

    }
   
    if (beansXmlOverride == null) {
      // TODO Should resin-beans.xml be included in this check?
      if (packageRoot != null) {
        if (! scanRoot.lookup("beans.xml").canRead()
            && ! scanRoot.lookup("META-INF/beans.xml").canRead()) {
          return false;
        }
      } else if (! (root.lookup("META-INF/beans.xml").canRead()
                    || (root.getFullPath().endsWith("WEB-INF/classes/")
View Full Code Here

   
    if (beansXmlOverride == null) {
      // TODO Should resin-beans.xml be included in this check?
      if (packageRoot != null) {
        if (! scanRoot.lookup("beans.xml").canRead()
            && ! scanRoot.lookup("META-INF/beans.xml").canRead()) {
          return false;
        }
      } else if (! (root.lookup("META-INF/beans.xml").canRead()
                    || (root.getFullPath().endsWith("WEB-INF/classes/")
                        && root.lookup("../beans.xml").canRead()))) {
View Full Code Here

    compiler = JavaCompiler.create(loader);
    //compiler.setEncoding("utf8");
    Path workPath = CauchoSystem.getWorkPath();
   
    dest = workPath.lookup(name.replace('.', '/') + ".java");

    hasDispatch = new IntMap();
    staticHasDispatch = new IntMap();
    setDispatch = new IntMap();
    staticSetDispatch = new IntMap();
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.