Package com.caucho.vfs

Examples of com.caucho.vfs.Depend


    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));");
      }
    }

    println("stylesheets = new StylesheetEnv[" + _stylesheets.size() + "];");
    println("StylesheetEnv env;");
View Full Code Here


    if (_depend != null && !_depend.isModified())
      return;

    try {
      _depend = new Depend(_path);

      _isError = true;

      MatchRule matchRule = new MatchRule(getRewriteDispatch());
      matchRule.setPassFilterChainMapper(getPassFilterChainMapper());
View Full Code Here

    //_loader.setOwner(this);

    _lifecycle = new Lifecycle(log, toString(), Level.INFO);

    if (entry.getArchivePath() != null)
      Environment.addDependency(new Depend(entry.getArchivePath()), _loader);

    // _alarm = new Alarm(this);
  }
View Full Code Here

   * Initialize
   */
  @PostConstruct
  public void init()
  {
    Depend depend = new Depend(_path);

    Environment.addDependency(depend);
  }
View Full Code Here

    try {
      for (int i = 0; i < dependList.size(); i++) {
  PersistentDependency dependency = dependList.get(i);

  if (dependency instanceof Depend) {
    Depend depend = (Depend) dependency;

    os.print('"');
    os.print(depend.getPath().getNativePath());
    os.print("\" \"");
    os.print(depend.getDigest());
    os.println("\"");
  }
      }
    } finally {
      os.close();
View Full Code Here

      String name;

      while ((name = parseName(is)) != null) {
  long digest = Long.parseLong(parseName(is));

  Depend depend = new Depend(dependPath.lookup(name), digest);

  dependList.add(depend);
      }

      return dependList;
View Full Code Here

      ArrayList<Depend> styleDepends = null;
      if (ss != null)
        styleDepends = (ArrayList) ss.getProperty(StylesheetImpl.DEPENDS);
      for (int i = 0; styleDepends != null && i < styleDepends.size(); i++) {
        Depend depend = styleDepends.get(i);

        Depend jspDepend = new Depend(depend.getPath(),
                                      depend.getLastModified(),
                                      depend.getLength());
        jspDepend.setRequireSource(true);

        if (! depends.contains(jspDepend))
          depends.add(jspDepend);
      }

      // Fill the page dependency information from the document into
      // the jsp page.
      ArrayList<Path> docDepends;
      docDepends = (ArrayList) doc.getProperty(CauchoDocument.DEPENDS);
      for (int i = 0; docDepends != null && i < docDepends.size(); i++) {
        Path depend = docDepends.get(i);

        Depend jspDepend = new Depend(depend);
        if (! depends.contains(jspDepend))
          depends.add(jspDepend);
      }

      // stylesheet cache dependencies are normal dependencies for JSP
      ArrayList<Path> cacheDepends = null;
      TransformerImpl xform = null;
      if (transformer instanceof TransformerImpl)
        xform = (TransformerImpl) transformer;
      if (xform != null)
        cacheDepends = (ArrayList) xform.getProperty(TransformerImpl.CACHE_DEPENDS);
      for (int i = 0; cacheDepends != null && i < cacheDepends.size(); i++) {
        Path depend = cacheDepends.get(i);
        Depend jspDepend = new Depend(depend);
        if (! depends.contains(jspDepend))
          depends.add(jspDepend);
      }

      ServletConfig config = null;
View Full Code Here

   * Adds a dependent file.
   */
  public void addDepend(Path depend)
  {
    if (! _dependList.contains(depend))
      _dependList.add(new Depend(depend));
  }
View Full Code Here

                            _loader);

    _lifecycle = new Lifecycle(log, toString(), Level.INFO);

    if (controller.getArchivePath() != null)
      Environment.addDependency(new Depend(controller.getArchivePath()), _loader);

    _localEApp.set(this, _loader);
  }
View Full Code Here

  /**
   * Add a dependency.
   */
  public void addDepend(Path path)
  {
    addDependency(new Depend(path));
  }
View Full Code Here

TOP

Related Classes of com.caucho.vfs.Depend

Copyright © 2018 www.massapicom. 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.