Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for fromMillis (0.28 sec)

  1. 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)
  2. 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)
  3. 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)
Back to top