Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for cleanBuildDir (0.15 sec)

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

            executedAndNotSkipped ":customTask"
    
            when:
            cleanBuildDir()
            withBuildCache().run "customTask"
            then:
            skipped ":customTask"
    
    
            when:
            buildFile << """
                customTask.outputs.cacheIf { false }
            """
    
            withBuildCache().run "customTask"
            cleanBuildDir()
    
            withBuildCache().run "customTask"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/internal/changedetection/rules/OverlappingOutputsIntegrationTest.groovy

            // Only the first task can be cached since the second detects the overlap
            assertTaskOutputCached(first)
            assertTaskOutputNotCached(second)
    
            when:
            cleanBuildDir()
            withBuildCache().run(first, second)
            then:
            // Output should match the first execution
            firstOutput.assertExists()
            secondOutput.assertExists()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 20:54:14 UTC 2024
    - 30K bytes
    - Viewed (0)
  3. platforms/core-execution/execution-e2e-tests/src/integTest/groovy/org/gradle/integtests/CachedKotlinTaskExecutionIntegrationTest.groovy

            then:
            result.assertTaskNotSkipped(":customTask")
    
            when:
            file("buildSrc/build").deleteDir()
            file("buildSrc/.gradle").deleteDir()
            cleanBuildDir()
    
            withBuildCache().run "customTask"
            then:
            result.groupedOutput.task(":customTask").outcome == "FROM-CACHE"
        }
    
        @Requires(IntegTestPreconditions.NotParallelExecutor)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 04 10:15:40 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedTaskExecutionErrorHandlingIntegrationTest.groovy

            }
            output.count("Could not $failEvent entry") == 1
            output.count("The remote build cache was disabled during the build due to errors.") == 1
    
            when:
            cleanBuildDir()
            succeeds "secondTask"
    
            then: "build cache is still enabled during next build"
            !output.contains("The remote build cache was disabled during the build")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:22 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  5. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/CachedScalaCompileIntegrationTest.groovy

            then:
            skipped compilationTask
            // Local state is removed when loaded from cache
            classes.analysisFile.assertDoesNotExist()
    
            when:
            cleanBuildDir()
            withBuildCache().run compilationTask
    
            then:
            skipped compilationTask
            // Local state is removed when loaded from cache
            classes.analysisFile.assertDoesNotExist()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 9K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CacheTaskArchiveErrorIntegrationTest.groovy

            then:
            def cacheKey = cacheOperations.getCacheKeyForTask(":cacheable")
            localCache.hasCacheEntry(cacheKey)
    
            when:
            executer.withStacktraceEnabled()
            cleanBuildDir()
    
            and:
            corruptMetadata({ metadata -> metadata.text = "corrupt" })
            fails("cacheable")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 9.7K bytes
    - Viewed (0)
Back to top