Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 35 for snapshotting (0.14 sec)

  1. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/impl/DefaultInputFingerprinterTest.groovy

            0 * _
    
            then:
            result.valueSnapshots as Map == ["identity": inputSnapshot]
            result.fileFingerprints as Map == [:]
        }
    
        def "reports value snapshotting problem"() {
            def failure = new RuntimeException("Error")
            def input = "failing-value"
    
            when:
            fingerprintInputProperties { visitor ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 9K bytes
    - Viewed (0)
  2. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/compile/AbstractJavaCompileAvoidanceIntegrationSpec.groovy

            file("b/src/main/${language.name}/Bar.${language.name}") << 'class Bar { public void useFoo(Foo foo) { } }'
    
            when:
            // Run with --debug to ensure that class snapshotting didn't fail.
            succeeds ":b:${language.compileTaskName}", "--debug"
    
            then:
            executedAndNotSkipped(":b:${language.compileTaskName}")
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 12:15:28 UTC 2023
    - 14.6K bytes
    - Viewed (0)
  3. subprojects/core-api/src/main/java/org/gradle/work/NormalizeLineEndings.java

    import java.lang.annotation.Retention;
    import java.lang.annotation.RetentionPolicy;
    import java.lang.annotation.Target;
    
    /**
     * Attached to an input property to specify that line endings should be normalized
     * when snapshotting inputs. Two files with the same contents but different line endings
     * will be considered equivalent.
     *
     * Line ending normalization is only supported with ASCII encoding and its supersets (i.e.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 13 17:35:59 UTC 2022
    - 2K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheFileSystemDefaultExcludesTest.groovy

            result.assertTasksSkipped(":$spec.copyTask")
    
            where:
            spec << DefaultExcludesFixture.specs()
        }
    
        def "default excludes defined in build#scriptLanguage are ignoring for snapshotting"() {
            given:
            def configurationCache = newConfigurationCacheFixture()
            def spec = new DefaultExcludesFixture.Spec(
                Collections.singletonList(new DefaultExcludesFixture.RootBuildLocation()),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/impl/DefaultOutputSnapshotterTest.groovy

                snapshot >> outputSnapshot
            }
            0 * _
    
            then:
            result as Map == ["output": outputSnapshot]
        }
    
        def "reports snapshotting problem"() {
            def failure = new UncheckedIOException(new IOException("Error"))
    
            when:
            outputSnapshotter.snapshotOutputs(work, workspace)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  6. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaCompileIntegrationTest.groovy

            'resources directory' | 'RESOURCES' | 'resources/main'    | 'processResources' | 'compileJava'
        }
    
        @Issue("gradle/gradle#1347")
        def "compile classpath snapshotting ignores non-relevant elements"() {
            def buildFileWithDependencies = { String... dependencies ->
                buildFile.text = """
                    apply plugin: 'java'
    
                    ${mavenCentralRepository()}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 20:20:39 UTC 2024
    - 39.6K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/MissingTaskDependenciesIntegrationTest.groovy

                    outputFile = file("classes.jar")
                }
            """
    
            // This is to make sure that:
            //   - The snapshotting of the zip task finishes after the outputs have been broadcast by the compile task
            //   - The snapshotting of the zip task finishes before the snapshotting of the outputs of the compile task
            server.expectConcurrent("zipFileSnapshottingStarted", "compileAction1")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 08:14:44 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  8. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/ConfigurableFileTreeIntegrationTest.groovy

            run("generate")
    
            then:
            result.assertTaskNotSkipped(":generate")
            output.count("checking") == 22 // checked twice, once to snapshot and once when the task action runs. Should be memoized when snapshotting
            outputContains("checking a/a.txt")
            outputContains("checking d/d.txt")
            file("out.txt").text == "a.txt,c.txt,d.txt"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  9. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/CaptureOutputsAfterExecutionStepTest.groovy

            _ * context.cachingState >> CachingState.disabledWithoutInputs(new CachingDisabledReason(CachingDisabledReasonCategory.UNKNOWN, "Unknown"))
            0 * _
        }
    
        def "fails if snapshotting outputs fail"() {
            def delegateDuration = Duration.ofMillis(123)
            def failure = new OutputSnapshotter.OutputFileSnapshottingException("output", new IOException("Error")) {}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 10:36:34 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/generator/TestProjectGenerator.groovy

                generateProject(subProjectDir, dependencyTree, subProjectNumber, projectDepth - 1)
            }
        }
    
        /**
         * This is just to ensure we test the overhead of having a buildSrc project, e.g. snapshotting the Gradle API.
         */
        private addDummyBuildSrcProject(File projectDir) {
            file projectDir, "buildSrc/src/main/${config.language.name}/Thing.${config.language.name}", "public class Thing {}"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top