Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 105 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. subprojects/core/src/main/java/org/gradle/api/internal/project/taskfactory/TaskClassInfo.java

        private final boolean cacheable;
        private final Optional<String> reasonNotToTrackState;
    
        public TaskClassInfo(ImmutableList<TaskActionFactory> taskActionFactories, boolean cacheable, Optional<String> reasonNotToTrackState) {
            this.taskActionFactories = taskActionFactories;
            this.cacheable = cacheable;
            this.reasonNotToTrackState = reasonNotToTrackState;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 18 14:40:02 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/execution/DefaultTaskCacheabilityResolverTest.groovy

            def reason = determineNoCacheReason(
                [],
                [cacheableOutputProperty],
                [spec({ false }, "Cacheable test")]
            )
    
            then:
            reason.category == CachingDisabledReasonCategory.ENABLE_CONDITION_NOT_SATISFIED
            reason.message == "'Cacheable test' not satisfied"
        }
    
        def "error message contains which cacheIf spec failed to evaluate"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 18 08:25:11 UTC 2021
    - 7.1K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/internal/action/DefaultConfigurableRule.java

        public boolean isCacheable() {
            return cacheable;
        }
    
        @Override
        public boolean equals(Object o) {
            if (this == o) {
                return true;
            }
            if (o == null || getClass() != o.getClass()) {
                return false;
            }
            DefaultConfigurableRule<?> that = (DefaultConfigurableRule<?>) o;
            return cacheable == that.cacheable &&
                Objects.equal(rule, that.rule) &&
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 22 21:39:35 UTC 2019
    - 3.5K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/api/internal/project/taskfactory/DefaultTaskClassInfoStoreTest.groovy

        def "cacheable tasks are detected"() {
            expect:
            taskClassInfoStore.getTaskClassInfo(MyCacheableTask).cacheable
        }
    
        private static class MyNonCacheableTask extends MyCacheableTask {}
    
        def "cacheability is not inherited"() {
            expect:
            !taskClassInfoStore.getTaskClassInfo(MyNonCacheableTask).cacheable
        }
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 03 06:55:11 UTC 2018
    - 1.8K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top