Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for setLastModified (0.09 seconds)

  1. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/StringWagon.java

            String content = expectedContent.get(resource.getName());
    
            if (content != null) {
                resource.setContentLength(content.length());
                resource.setLastModified(System.currentTimeMillis());
    
                inputData.setInputStream(new ByteArrayInputStream(content.getBytes(StandardCharsets.UTF_8)));
            } else {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 3K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/io/FilesTest.java

                      @Override
                      public boolean setLastModified(long t) {
                        return false;
                      }
    
                      private static final long serialVersionUID = 0;
                    }));
      }
    
      public void testTouchTime() throws IOException {
        File temp = createTempFile();
        assertTrue(temp.exists());
        temp.setLastModified(0);
        assertEquals(0, temp.lastModified());
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:44:53 GMT 2025
    - 22.1K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/io/FilesTest.java

                      @Override
                      public boolean setLastModified(long t) {
                        return false;
                      }
    
                      private static final long serialVersionUID = 0;
                    }));
      }
    
      public void testTouchTime() throws IOException {
        File temp = createTempFile();
        assertTrue(temp.exists());
        temp.setLastModified(0);
        assertEquals(0, temp.lastModified());
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:44:53 GMT 2025
    - 22.1K bytes
    - Click Count (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/AbstractRepositoryMetadata.java

                    MetadataStaxWriter mappingWriter = new MetadataStaxWriter();
                    mappingWriter.write(output, metadata.getDelegate());
                }
            } else {
                metadataFile.setLastModified(System.currentTimeMillis());
            }
        }
    
        @Override
        public String toString() {
            return "repository metadata for: '" + getKey() + "'";
        }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java

                    // TODO should this be inside the above check?
                    // touch file so that this is not checked again until interval has passed
                    if (file.exists()) {
                        file.setLastModified(System.currentTimeMillis());
                    }
                }
            }
    
            try {
                mergeMetadata(metadata, remoteRepositories, localRepo);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 18.9K bytes
    - Click Count (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java

                                if (!downloaded) {
                                    // prevent additional checks of this artifact until it expires again
                                    destination.setLastModified(System.currentTimeMillis());
                                }
                            } catch (UnsupportedOperationException e) {
                                // older wagons throw this. Just get() instead
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 29.9K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/io/Files.java

       */
      @SuppressWarnings("GoodTime") // reading system time without TimeSource
      public static void touch(File file) throws IOException {
        checkNotNull(file);
        if (!file.createNewFile() && !file.setLastModified(System.currentTimeMillis())) {
          throw new IOException("Unable to update modification time of " + file);
        }
      }
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Sep 25 20:24:13 GMT 2025
    - 32.8K bytes
    - Click Count (0)
  8. guava/src/com/google/common/io/Files.java

       */
      @SuppressWarnings("GoodTime") // reading system time without TimeSource
      public static void touch(File file) throws IOException {
        checkNotNull(file);
        if (!file.createNewFile() && !file.setLastModified(System.currentTimeMillis())) {
          throw new IOException("Unable to update modification time of " + file);
        }
      }
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Sep 25 20:24:13 GMT 2025
    - 32.8K bytes
    - Click Count (0)
Back to Top