Package com.caucho.vfs

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


  else
    expandArchiveImpl();
      }

      Path path = getRootDirectory().lookup("META-INF/MANIFEST.MF");
      if (path.canRead()) {
        ReadStream is = path.openRead();
        try {
          _manifest = new Manifest(is);
        } catch (IOException e) {
          log.warning(L.l("Manifest file cannot be read for '{0}'.\n{1}",
View Full Code Here


    Path archivePath = getArchivePath();

    if (archivePath == null)
      return true;

    if (! archivePath.canRead())
      return true;

    Path expandDir = getRootDirectory();
    Path parent = expandDir.getParent();
View Full Code Here

    Path dependPath = expandDir.lookup("META-INF/resin-war.digest");
    Depend depend = null;

    // XXX: change to a hash
    if (dependPath.canRead()) {
      ReadStream is = null;
      try {
        is = dependPath.openRead();

        String line = is.readLine();
View Full Code Here

                                         _container);
    }

    // server/10tk
    if (! isValidDirectory(rootDirectory, segmentName)
        && ! jarPath.canRead()
        && (getRepository() != null
            && getRepository().getTagRoot(repositoryTag) == null)) {
      return baseController;
    }
View Full Code Here

  {
    Path rootDir = getRootDirectory();

    Path xml = rootDir.lookup("META-INF/application.xml");

    if (xml.canRead())
      new Config().configureBean(appClient, xml);

    xml = rootDir.lookup("META-INF/resin-application.xml");

    if (xml.canRead())
View Full Code Here

    if (xml.canRead())
      new Config().configureBean(appClient, xml);

    xml = rootDir.lookup("META-INF/resin-application.xml");

    if (xml.canRead())
      new Config().configureBean(appClient, xml);

    /*
     * XXX:
     config = EnterpriseApplication.parseApplicationConfig(rootDir, xml);
View Full Code Here

    if (_clientJar == null)
      return;

    Path xml = _clientJar.lookup("META-INF/application-client.xml");

    if (! xml.canRead())
      return;

    new Config().configureBean(appClient, xml,
                               "com/caucho/server/e_app/app-client.rnc");
  }
View Full Code Here

    println("com.caucho.vfs.Path pwd = path.getParent();");

    for (int i = 0; i < _depends.size(); i++) {
      Path path = _depends.get(i);
     
      if (path.canRead() && ! path.isDirectory()) {
  Depend depend = new Depend(path);
  print("addDepend(new com.caucho.vfs.Depend(pwd.lookup(\"");
  printString(path.getRelativePath());
  println("\"), " + depend.getDigest() + "L));");
View Full Code Here

      rootDirectory = getExpandDirectory().lookup(getExpandName(name));
    }
    else {
      rootDirectory = getExpandDirectory().lookup(getExpandName(name));

      if (! archivePath.canRead() && ! rootDirectory.canRead())
  return null;
    }

    EarDeployController controller
      = new EarDeployController(name, rootDirectory, _parentContainer);
View Full Code Here

  {
    Path rootDir = getRootDirectory();

    Path xml = rootDir.lookup("META-INF/resin-client.xml");

    if (! xml.canRead())
      return;

    // AppClientBinding binding = new AppClientBinding(this);

    // builder.setCompactSchema("com/caucho/server/e_app/app-client.rnc");
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.