home *** CD-ROM | disk | FTP | other *** search
- package com.bitmechanic.gsp;
-
- import java.io.File;
-
- public class FileDependancy {
- private File file;
- private long timestamp;
-
- public FileDependancy(String var1, String var2) {
- this.file = new File(var1);
- this.timestamp = Long.parseLong(var2);
- }
-
- public boolean isCurrent() {
- if (this.file.exists()) {
- return this.file.lastModified() <= this.timestamp;
- } else {
- return this.timestamp <= 0L;
- }
- }
- }
-