- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for fromMillis (2.45 sec)
-
build-logic/performance-testing/src/main/groovy/gradlebuild/performance/generator/MavenJarCreator.groovy
} } private static ZipEntry normalizedZipEntry(String name) { new ZipEntry(name).tap { creationTime = FileTime.fromMillis(0) lastAccessTime = FileTime.fromMillis(0) lastModifiedTime = FileTime.fromMillis(0) } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 05 09:51:22 UTC 2021 - 2.9K bytes - Viewed (0) -
platforms/core-runtime/files/src/main/java/org/gradle/internal/file/nio/ModificationTimeFileAccessTimeJournal.java
@Override public void setLastAccessTime(File file, long millis) { try { Files.setLastModifiedTime(file.toPath(), FileTime.fromMillis(millis)); } catch (IOException e) { LOGGER.debug("Ignoring failure to set last access time of " + file, e); } } @Override public long getLastAccessTime(File file) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:50:57 UTC 2024 - 1.6K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/GFileUtils.java
* (or directory) must exist. */ public static void touchExisting(File file) { try { Files.setLastModifiedTime(file.toPath(), FileTime.fromMillis(System.currentTimeMillis())); } catch (IOException e) { if (file.isFile() && file.length() == 0) { // On Linux, users cannot touch files they don't own but have write access to
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 10:50:51 UTC 2024 - 10.8K bytes - Viewed (0) -
platforms/core-runtime/logging/src/main/java/org/gradle/util/GFileUtils.java
logDeprecation(); touchExistingInternal(file); } private static void touchExistingInternal(File file) { try { Files.setLastModifiedTime(file.toPath(), FileTime.fromMillis(System.currentTimeMillis())); } catch (IOException e) { if (file.isFile() && file.length() == 0) { // On Linux, users cannot touch files they don't own but have write access to
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 10:50:51 UTC 2024 - 13.9K bytes - Viewed (0) -
guava/src/com/google/common/io/MoreFiles.java
@SuppressWarnings("GoodTime") // reading system time without TimeSource public static void touch(Path path) throws IOException { checkNotNull(path); try { Files.setLastModifiedTime(path, FileTime.fromMillis(System.currentTimeMillis())); } catch (NoSuchFileException e) { try { Files.createFile(path); } catch (FileAlreadyExistsException ignore) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed May 17 14:35:11 UTC 2023 - 34.3K bytes - Viewed (0)