Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 29 of 29 for withBuildCache (0.47 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/BuildResultLoggerIntegrationTest.groovy

        def "cached task outcome statistics are reported"() {
            when:
            withBuildCache().run "adHocTask", "executedTask"
    
            then:
            result.assertTasksNotSkipped(":adHocTask", ":executedTask")
            result.assertHasPostBuildOutput "2 actionable tasks: 2 executed"
    
            when:
            file("build").deleteDir()
            withBuildCache().run "adHocTask", "executedTask"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/SnapshotTaskInputsOperationIntegrationTest.groovy

                additionalData.asMap == [
                    'typeName' : 'CustomTask',
                ]
            }
    
        }
    
        def "exposes file inputs, ignoring empty directories"() {
            given:
            withBuildCache()
            settingsFile << "include 'a', 'b'"
            createDir("a") {
                file("build.gradle") << "plugins { id 'java' }"
                dir("src/main/java") {
                    file("A.java") << "class A {}"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  3. platforms/jvm/war/src/integTest/groovy/org/gradle/api/tasks/bundling/WarTaskIntegrationTest.groovy

                    destinationDirectory = buildDir
                    archiveFileName = 'test.war'
                    outputs.cacheIf { true }
                }
            """
    
            when:
            withBuildCache().run "clean", "war"
    
            then:
            executedAndNotSkipped ':war'
    
            and:
            def war = new JarTestFixture(file('build/test.war'))
            war.assertContainsFile('META-INF/MANIFEST.MF')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 13:20:44 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  4. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/ChangesBetweenBuildsFileSystemWatchingIntegrationTest.groovy

            def targetFile = projectDir.file("build/target.txt")
    
            executer.beforeExecute {
                inDirectory(projectDir)
                enableVerboseVfsLogs()
                withBuildCache()
                withWatchFs()
            }
    
            settingsFile.text = buildCache.localCacheConfiguration()
            buildFile.text = buildFileContents
            sourceFile.text = "Hello Old World!"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformBuildOperationIntegrationTest.groovy

            when:
            withBuildCache().run ":consumer:resolve", "-DproducerContent=initial"
            then:
            executedAndNotSkipped(":consumer:resolve")
    
            outputDoesNotContain("processing [producer.jar]")
            checkExecuteTransformWorkOperations(getExecutePlannedStepOperations(1).first(), ["UP-TO-DATE"])
    
            when:
            withBuildCache().run ":consumer:resolve", "-DproducerContent=changed"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 16:27:38 UTC 2024
    - 67.8K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/NestedInputIntegrationTest.groovy

            }
    
            when:
            executer.inDirectory(project1)
            withBuildCache().run 'myTask'
    
            then:
            executedAndNotSkipped(':myTask')
            project1.file('build/tmp/myTask/output.txt').text == "hello"
    
            when:
            executer.inDirectory(project2)
            withBuildCache().run 'myTask'
    
            then:
            skipped(':myTask')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskParametersIntegrationTest.groovy

            outputContains("outputFileCount = 2, inputFileCount = 3, inputValueCount = 1, nestedInputCount = 3, nestedInputValueCount = 1")
    
            when:
            inputFile.text = "changed"
            withBuildCache().succeeds("printCounts")
            then:
            executedAndNotSkipped(':myTask')
            outputContains("outputFileCount = 2, inputFileCount = 3, inputValueCount = 1, nestedInputCount = 3, nestedInputValueCount = 1")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/AbstractIntegrationSpec.groovy

                }
                currentDirectory = currentDirectory.parentFile
                if (currentDirectory == null) {
                    break
                }
            }
        }
    
        AbstractIntegrationSpec withBuildCache() {
            executer.withBuildCacheEnabled()
            this
        }
    
        /**
         * Synonym for succeeds()
         */
        protected ExecutionResult run(String... tasks) {
            succeeds(*tasks)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:07:53 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyTaskIntegrationSpec.groovy

                    ${mutation}
                    from "src.txt"
                    into "destination"
                }
            """
    
            withBuildCache().run "copy"
            file("destination").deleteDir()
    
            when:
            withBuildCache().run "copy"
    
            then:
            noneSkipped()
    
            where:
            description                 | mutation
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 67.9K bytes
    - Viewed (0)
Back to top