Example #1
0
 public boolean _caucho_isModified() {
   if (_caucho_isDead) return true;
   if (com.caucho.util.CauchoSystem.getVersionId() != -2089842219) return true;
   for (int i = _caucho_depends.size() - 1; i >= 0; i--) {
     com.caucho.vfs.Depend depend;
     depend = (com.caucho.vfs.Depend) _caucho_depends.get(i);
     if (depend.isModified()) return true;
   }
   return false;
 }
  public static void writeDepend(Path dependPath, ArrayList<PersistentDependency> dependList)
      throws IOException {
    WriteStream os = dependPath.openWrite();
    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();
    }
  }