Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 5,906 for FILE (0.29 sec)

  1. platforms/core-runtime/files/src/main/java/org/gradle/internal/file/nio/NioFileMetadataAccessor.java

     */
    package org.gradle.internal.file.nio;
    
    import org.gradle.api.UncheckedIOException;
    import org.gradle.internal.file.FileMetadata;
    import org.gradle.internal.file.FileMetadata.AccessType;
    import org.gradle.internal.file.FileMetadataAccessor;
    import org.gradle.internal.file.impl.DefaultFileMetadata;
    
    import java.io.File;
    import java.io.IOException;
    import java.nio.file.Files;
    import java.nio.file.LinkOption;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:56 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/DefaultIgnoredConfigurationInputsTest.kt

    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. 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) {
            return file.lastModified();
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:57 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/test/groovy/org/gradle/internal/scan/config/fixtures/ApplyDevelocityPluginFixtureTest.groovy

        def "no special blocks"() {
            given:
            File file = File.createTempFile("test_script", ".tmp")
            file.write("includeBuild '../lib'")
            file.deleteOnExit()
    
            when:
            ApplyDevelocityPluginFixture.applyDevelocityPlugin(file)
    
    
            then:
            file.text =="""plugins {
                |    id("com.gradle.develocity") version("${VERSION}")
                |}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:24:56 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/CppApplicationInitIntegrationTest.groovy

            then:
            subprojectDir.file("src/main/cpp").assertHasDescendants(SAMPLE_APP_CLASS)
            subprojectDir.file("src/main/headers").assertHasDescendants(SAMPLE_APP_HEADER)
            subprojectDir.file("src/test/cpp").assertHasDescendants(SAMPLE_APP_TEST_CLASS)
    
            and:
            subprojectDir.file("src/main/headers/${SAMPLE_APP_HEADER}").text.contains("namespace app {")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 20:10:55 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  6. platforms/core-runtime/wrapper-shared/src/main/java/org/gradle/wrapper/PathAssembler.java

            private final File distZip;
            private final File distDir;
    
            public LocalDistribution(File distDir, File distZip) {
                this.distDir = distDir;
                this.distZip = distZip;
            }
    
            /**
             * Returns the location to install the distribution into.
             */
            public File getDistributionDir() {
                return distDir;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/nio/ModificationTimeFileAccessTimeJournalTest.groovy

        def "updates modification time"() {
            given:
            def file = tmpDir.createFile("file")
    
            when:
            journal.setLastAccessTime(file, FIXED_TIMESTAMP)
    
            then:
            file.lastModified() == FIXED_TIMESTAMP
        }
    
        def "reads modification time"() {
            given:
            def file = tmpDir.createFile("file")
            file.lastModified = FIXED_TIMESTAMP
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:57 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  8. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/archive/JarTestFixture.groovy

         * Creates the fixture.
         */
        JarTestFixture(File file, String metadataCharset, String contentCharset, boolean checkManifest) {
             super(file, metadataCharset, contentCharset)
             this.file = file
             if (checkManifest) {
                 assertManifestPresentAndFirstEntry()
             }
         }
    
        /**
         * Asserts that the given service is defined in this jar file.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 14:13:17 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_request_files/test_tutorial001_an_py39.py

        assert response.status_code == 200, response.text
        assert response.json() == {"file_size": 14}
    
    
    @needs_py39
    def test_post_large_file(tmp_path, client: TestClient):
        default_pydantic_max_size = 2**16
        path = tmp_path / "test.txt"
        path.write_bytes(b"x" * (default_pydantic_max_size + 1))
    
        with path.open("rb") as file:
            response = client.post("/files/", files={"file": file})
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/Execute3QualifiedStaticInstrumentationInDynamicGroovyWithIndyIntegrationTest.groovy

                [fromObjectList(), "ProcessGroovyMethods.execute(command, new String[] {'FOOBAR=foobar'}, file('$pwd'))", pwd, "foobar"],
                [fromString(), "ProcessGroovyMethods.execute(command, ['FOOBAR=foobar'], file('$pwd'))", pwd, "foobar"],
                [fromGroovyString(), "ProcessGroovyMethods.execute(command, ['FOOBAR=foobar'], file('$pwd'))", pwd, "foobar"],
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top