Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for doNotStoreInCache (0.21 sec)

  1. platforms/enterprise/enterprise/src/main/java/org/gradle/internal/enterprise/test/TestTaskPropertiesService.java

         * while still allowing the task to be loaded from the build cache if a prior execution with the same
         * cache key executed all tests.
         */
        void doNotStoreInCache(Test task);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/api/internal/TaskOutputsEnterpriseInternal.java

         */
        boolean getStoreInCache();
    
        /**
         * Avoid storing the task's outputs in the build cache.
         * <p>
         * This does not prevent the task from being up-to-date.
         */
        void doNotStoreInCache();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 17:46:30 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. platforms/enterprise/enterprise/src/main/java/org/gradle/internal/enterprise/test/impl/DefaultTestTaskPropertiesService.java

                inputFileProperties.build(),
                outputFileProperties.build()
            );
        }
    
        @Override
        public void doNotStoreInCache(Test task) {
            ((TaskOutputsEnterpriseInternal) task.getOutputs()).doNotStoreInCache();
        }
    
        private ImmutableList<CandidateClassFile> collectCandidateClassFiles(Test task) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:16:16 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedTaskIntegrationTest.groovy

                apply plugin: 'base'
    
                def storeInCache = project.hasProperty('storeInCache')
                cacheable.doLast {
                    if (!storeInCache) {
                        outputs.doNotStoreInCache()
                    }
                }
            """
            def taskPath = ":cacheable"
    
            when:
            withBuildCache().run(taskPath)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 20 17:51:57 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. platforms/enterprise/enterprise/src/integTest/groovy/org/gradle/internal/enterprise/test/TestTaskPropertiesServiceIntegrationTest.groovy

                        this.service = service
                    }
                    @Override void execute(Task task) {
                        service.doNotStoreInCache(task)
                    }
                }
            """
            file('src/test/java/org/example/TestClass.java') << """
                package org.example;
                public class TestClass {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 10:21:26 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/api/internal/tasks/DefaultTaskOutputs.java

                upToDateSpec = upToDateSpec.and(spec);
            });
        }
    
        @Override
        public boolean getStoreInCache() {
            return storeInCache;
        }
    
        @Override
        public void doNotStoreInCache() {
            // Not wrapped in TaskMutator to allow calls during task execution
            storeInCache = false;
        }
    
        @Override
        public void cacheIf(final Spec<? super Task> spec) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 04 09:46:14 UTC 2023
    - 10.2K bytes
    - Viewed (0)
Back to top