@Override public int compare(VirtualFile resource, VirtualFile resource1) { return Long.signum(resource.getLastModified() - resource1.getLastModified()); } };
@Override public Date getLastModified() { return new Date(file.getLastModified()); }
@Override public long getCreationTime() { //not supported through vfs return file.getLastModified(); }
@Override public long getTime() { return virtualFile.getLastModified(); }
public long getLastModified() { return file.getLastModified(); }
@Override public long getLastModified() { return file.getLastModified(); }
@Override public int compare(VirtualFile resource, VirtualFile resource1) { return Long.signum(resource.getLastModified() - resource1.getLastModified()); } };
@Override public Date getLastModified() { return new Date(file.getLastModified()); }
@Override public Date getLastModified() { return new Date(file.getLastModified()); }
/** * {@inheritDoc} */ public long getLastModified(VirtualFile mountPoint, VirtualFile target) { final VirtualFile assemblyFile = assembly.getFile(mountPoint, target); return assemblyFile == null ? 0L : assemblyFile.getLastModified(); }
/** * Do override. * * @param fileToOverride the file to override * @param modifiedFile the modifed file * @return new timestamp * @throws IOException for any error */ static long override(VirtualFile fileToOverride, VirtualFile modifiedFile) throws IOException { if (fileToOverride.delete()) { File newFile = fileToOverride.getPhysicalFile(); return copy(modifiedFile, newFile); } else { log.warn("Could not delete previous file: " + fileToOverride + ", no change applied: " + modifiedFile); return fileToOverride.getLastModified(); } } }
if (root.exists()) { long lastModified = f.lastModified(); if (root.getLastModified() != lastModified) { fileName += counter.get();
if (root.exists()) { long lastModified = f.lastModified(); if (root.getLastModified() != lastModified) { fileName += counter.get();
if (root.exists()) { long lastModified = f.lastModified(); if (root.getLastModified() != lastModified) { fileName += counter.get();
@Override protected boolean hasRootBeenModified(VirtualFile root) throws IOException { Long cachedValue = getCache().getCacheValue(root); long lastModified = root.getLastModified(); if (cachedValue != null) { return (cachedValue < lastModified); } else { getCache().putCacheValue(root, lastModified); return false; } }
public Attributes getAttributes(Name name, String[] attrIds) throws NamingException { VirtualFile entry = null; if (name.isEmpty()) { entry = base; } else { entry = treeLookup(name); } if (entry == null) throw new NamingException(sm.getString("resources.notFound", name)); ResourceAttributes attrs = new ResourceAttributes(); attrs.setCreationDate(new Date(entry.getLastModified())); attrs.setName(entry.getName()); if (entry.isFile()) attrs.setResourceType(""); attrs.setContentLength(entry.getSize()); attrs.setLastModified(entry.getLastModified()); return attrs; }
long lastModified = child.getLastModified(); if (timestamp != null)
long lastModified = child.getLastModified();