Examples of VirtualArtifactChange


Examples of net.sourceforge.javautil.common.io.VirtualArtifactWatcher.VirtualArtifactChange

    for (int i=0; i<artifacts.size(); i++) {
      artifact = artifacts.get(i);
      path = artifact.getPath();
      if (available.contains(path)) {
        if (artifact.getLastModified() <= since) { available.remove(path); continue; }
        changes.add(new VirtualArtifactChange(watched, path, Type.MODIFIED, artifact.getLastModified()));
      } else {
        paths.add(path);
        changes.add(new VirtualArtifactChange(watched, path, Type.NEW, artifact.getLastModified()));
      }
      available.remove(path);
    }
   
    for (int a=0; a<available.size(); a++) {
      changes.add(new VirtualArtifactChange(watched, available.get(a), Type.REMOVED, check));
      paths.remove(available.get(a));
    }
   
    return changes.size() == 0 ? null : changes;
  }
View Full Code Here

Examples of net.sourceforge.javautil.common.io.VirtualArtifactWatcher.VirtualArtifactChange

  public IVirtualFile getArtifact() { return this; }

  public List<VirtualArtifactChange> getArtifactChangeList(long since) {
    if (!this.isExists()) return null;
    return this.getLastModified() > since ? Arrays.asList(new VirtualArtifactChange(this, this.getPath(), Type.MODIFIED, this.getLastModified())) : null;
  }
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.