/** * Calls File.setLastModified(long time). Originally written to * to dynamically bind to that call on Java1.2+. * * @param file the file whose modified time is to be set * @param time the time to which the last modified time is to be set. * if this is -1, the current time is used. */ public void setFileLastModified(File file, long time) { ResourceUtils.setLastModified(new FileResource(file), time); }
final Touchable t = dest.as(Touchable.class); if (t != null) { setLastModified(t, source.getLastModified());