Package com.caucho.vfs

Examples of com.caucho.vfs.PersistentDependency


   *
   * @param path the file the JSP page is dependent on.
   */
  protected void _caucho_addDepend(Path path)
  {
    PersistentDependency depend = path.createDepend();
    if (depend instanceof Depend)
      ((Depend) depend).setRequireSource(getRequireSource());

    _caucho_addDepend(depend);
  }
View Full Code Here


                                           ArrayList<Depend> cacheDepends)
  {
      long lastModified = 0;

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

        if (dependency instanceof Depend) {
          Depend depend = (Depend) dependency;
          long modified = depend.getLastModified();
          if (lastModified < modified)
View Full Code Here

    _dependList.size() + "];");

    Path searchPath = _searchPath;
   
    for (int i = 0; i < _dependList.size(); i++) {
      PersistentDependency dependency = _dependList.get(i);

      if (dependency instanceof Depend) {
        Depend depend = (Depend) _dependList.get(i);
        Path path = depend.getPath();

        out.print("_caucho_depend[" + i + "] = new com.caucho.vfs.Depend(");
       
        // php/3b33
        String relativePath;
        if (searchPath != null)
          relativePath = searchPath.lookup(path.getRelativePath()).getRelativePath();
        else {
          String fullPath = path.getFullPath();
          String pwd = Vfs.lookup().getFullPath();

          if (fullPath.startsWith(pwd))
            relativePath = "./" + fullPath.substring(pwd.length());
          else
            relativePath = fullPath;
        }
 
        out.print("path.lookup(\"" + relativePath + "\"), ");
   
        out.println(depend.getDigest() + "L, "
                    + depend.getRequireSource() + ");");
      }
      else {
        out.print("_caucho_depend[" + i + "] = ");
        out.print(dependency.getJavaCreateString());
        out.println(";");
      }
    }

    out.popDepth();
View Full Code Here

                _dependList.size() + "];");

    Path searchPath = _searchPath;
   
    for (int i = 0; i < _dependList.size(); i++) {
      PersistentDependency dependency = _dependList.get(i);

      if (dependency instanceof Depend) {
        Depend depend = (Depend) _dependList.get(i);
        Path path = depend.getPath();

        out.print("_caucho_depend[" + i + "] = new com.caucho.vfs.Depend(");
       
        // php/3b33
        String relativePath;
        if (searchPath != null)
          relativePath = searchPath.lookup(path.getRelativePath()).getRelativePath();
        else {
          String fullPath = path.getFullPath();
          String pwd = Vfs.lookup().getFullPath();

          if (fullPath.startsWith(pwd))
            relativePath = "./" + fullPath.substring(pwd.length());
          else
            relativePath = fullPath;
        }

        out.print("path.lookup(\"" + relativePath + "\"), ");
   
        out.println(depend.getDigest() + "L, "
                    + depend.getRequireSource() + ");");
      }
      else {
        out.print("_caucho_depend[" + i + "] = ");
        out.print(dependency.getJavaCreateString());
        out.println(";");
      }
    }

    out.popDepth();
View Full Code Here

TOP

Related Classes of com.caucho.vfs.PersistentDependency

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.