public long lastModified() { return jar.lastModified(); }
public long lastModified() { return jar.lastModified(); }
+ file.lastModified() + " " + jar.lastModified()); if (file.lastModified() < jar.lastModified()) { System.out.println("Updating " + fName); jar.write(file); if (file.isFile() && file.lastModified() < jar.lastModified()) { jar.write(file);
public File saveBuild(Jar jar) throws Exception { try { String bsn = jar.getName(); File f = getOutputFile(bsn); String msg = ""; if (!f.exists() || f.lastModified() < jar.lastModified()) { reportNewer(f.lastModified(), jar); f.delete(); if (!f.getParentFile().isDirectory()) f.getParentFile().mkdirs(); jar.write(f); getWorkspace().changedFile(f); } else { msg = "(not modified since " + new Date(f.lastModified()) + ")"; } trace(jar.getName() + " (" + f.getName() + ") " + jar.getResources().size() + " " + msg); return f; } finally { jar.close(); } }
if (file.isFile() && file.lastModified() < jar.lastModified()) { jar.write(file);
if (!file.exists() || file.lastModified() < jar.lastModified()) { jar.write(file); reporter.progress("Updated " + file.getAbsolutePath()); if (latest.exists() && latest.lastModified() < jar.lastModified()) { jar.write(latest); file = latest;
if (!output.exists() || output.lastModified() <= jar.lastModified() || (options & BUILD_FORCE) != 0) { jar.write(output);
if (!output.exists() || output.lastModified() <= jar.lastModified() || (options & BUILD_FORCE) != 0) { jar.write(output);
if (!output.exists() || output.lastModified() <= jar.lastModified()) { jar.write(output); } else {
|| output.lastModified() <= jar.lastModified()) { jar.write(output); } else {