Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 87 for Cacheable (0.13 sec)

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

            when:
            withBuildCache().run("clean", "cacheable", "-PstoreInCache")
    
            then:
            listCacheFiles().any { it.name == cacheOperations.getCacheKeyForTask(taskPath) }
    
            when:
            withBuildCache().run("clean", "cacheable")
    
            then:
            skipped ":cacheable"
        }
    
        def "task is cacheable after previous failure"() {
            buildFile << """
                task foo {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 20 17:51:57 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerCacheIntegrationTest.groovy

            """
            file("input").text = "input file"
    
            when:
            def result = runner('cacheable').build()
    
            then:
            result.tasks.collect { it.path } == [':cacheable']
            result.taskPaths(SUCCESS) == [':cacheable']
            result.taskPaths(SKIPPED).empty
            result.taskPaths(UP_TO_DATE).empty
            result.taskPaths(FAILED).empty
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r35/CacheableTaskProgressEventsCrossVersionSpec.groovy

    import org.gradle.util.GradleVersion
    
    class CacheableTaskProgressEventsCrossVersionSpec extends ToolingApiSpecification {
        def setup() {
            buildFile << """
                apply plugin: 'base'
    
                task cacheable {
                    def outputFile = new File(buildDir, "output")
                    inputs.file("input")
                    outputs.file(outputFile)
                    outputs.cacheIf { true }
    
                    doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/caching/CachingDisabledReasonCategory.java

         */
        DISABLE_CONDITION_SATISFIED,
    
        /**
         * The work has no outputs declared.
         */
        NO_OUTPUTS_DECLARED,
    
        /**
         * Work has declared output that is not cacheable.
         *
         * Reasons for non-cacheable outputs:
         * <ul>
         *     <li>an output contains a file tree,</li>
         *     <li>an output is not tracked.</li>
         * </ul>
         */
        NON_CACHEABLE_OUTPUT,
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r33/CacheableTaskOutcomeCrossVersionSpec.groovy

    class CacheableTaskOutcomeCrossVersionSpec extends ToolingApiSpecification {
        def setup() {
            buildFile << """
                apply plugin: 'base'
    
                task cacheable {
                    def outputFile = new File(buildDir, "output")
                    inputs.file("input")
                    outputs.file(outputFile)
                    outputs.cacheIf { true }
    
                    doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/main/java/org/gradle/internal/resource/transfer/CachingTextUriResourceLoader.java

        }
    
        /**
         * Is {@code source} a cacheable transport scheme (e.g., http)?
         *
         * Schemes like file:// are not cacheable.
         */
        private boolean isCacheableScheme(URI source) {
            return cachedSchemes.contains(source.getScheme());
        }
    
        /**
         * Is {@code source} a cacheable URL?
         *
         * A URI is not cacheable if it uses a query string because our underlying infrastructure
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  7. platforms/enterprise/enterprise-operations/src/main/java/org/gradle/api/internal/tasks/execution/ExecuteTaskBuildOperationType.java

             * Null if the task was cacheable.
             * Not null if {@link #getCachingDisabledReasonCategory()} is not null.
             */
            @Nullable
            String getCachingDisabledReasonMessage();
    
            /**
             * The categorisation of the why the task was not cacheable.
             * Null if the task was cacheable.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 10:13:49 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/buildCache/cacheable-bundle/groovy/settings.gradle

    rootProject.name = 'cacheable-bundle'...
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 38 bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/buildCache/cacheable-bundle/kotlin/settings.gradle.kts

    rootProject.name = "cacheable-bundle"...
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 38 bytes
    - Viewed (0)
  10. platforms/enterprise/enterprise-operations/src/main/java/org/gradle/operations/execution/ExecuteWorkBuildOperationType.java

             * Null if the work was cacheable.
             * Not null if {@link #getCachingDisabledReasonCategory()} is not null.
             */
            @Nullable
            String getCachingDisabledReasonMessage();
    
            /**
             * The categorisation of why the work was not cacheable.
             * Null if the work was cacheable.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 10:13:49 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top