Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for cleanupValue (0.35 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/DefaultFinalizingValidatingPropertyTest.groovy

            when:
            property.prepareValue()
    
            then:
            1 * value.prepareValue()
            0 * value._
    
            when:
            property.cleanupValue()
    
            then:
            1 * value.cleanupValue()
            0 * value._
        }
    
        def "does not notify null property value"() {
            def valueWrapper = Stub(PropertyValue)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 15 21:15:55 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/api/internal/file/CalculatedTaskInputFileCollectionTest.groovy

            then:
            1 * input1.prepareValue()
            1 * input3.prepareValue()
    
            when:
            fileCollection.cleanupValue()
    
            then:
            1 * input1.cleanupValue()
            1 * input3.cleanupValue()
        }
    
        def "notifies calculated files of task start and complete"() {
            def calculated = Mock(TestCollection)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Oct 28 15:32:09 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/api/internal/file/CalculatedTaskInputFileCollection.java

            for (LifecycleAwareValue target : targets) {
                target.prepareValue();
            }
        }
    
        @Override
        public void cleanupValue() {
            taskIsExecuting = false;
            cachedFiles = null;
            for (LifecycleAwareValue target : targets) {
                target.cleanupValue();
            }
            targets = null;
            // Discard the calculated files collection too, but need to retain the display name for it
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Oct 28 15:32:09 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/api/internal/tasks/properties/DefaultFinalizingValidatingProperty.java

                lifecycleAware = (LifecycleAwareValue) obj;
                lifecycleAware.prepareValue();
            }
        }
    
        @Override
        public void cleanupValue() {
            if (lifecycleAware != null) {
                lifecycleAware.cleanupValue();
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 15 21:15:55 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/api/internal/tasks/execution/FinalizePropertiesTaskExecuter.java

            }
            try {
                return taskExecuter.execute(task, state, context);
            } finally {
                for (LifecycleAwareValue value : properties.getLifecycleAwareValues()) {
                    value.cleanupValue();
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 16 18:04:59 UTC 2019
    - 2.3K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/api/internal/tasks/properties/LifecycleAwareValue.java

        void prepareValue();
    
        /**
         * Called after the completion of the unit of work, regardless of the outcome. The property implementation can release any state that was cached during execution.
         */
        void cleanupValue();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 16 18:04:59 UTC 2019
    - 1.4K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/api/internal/file/CachingTaskInputFileCollectionTest.groovy

            def f1 = tmpDir.file("f1")
            def f2 = tmpDir.file("f2")
            collection.from(files)
    
            given:
            collection.prepareValue()
            collection.files
            collection.cleanupValue()
    
            expect:
            collection.files.empty
    
            files << f1
            collection.files as List == [f1]
    
            files << f2
            collection.files as List == [f1, f2]
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 06 01:29:26 UTC 2020
    - 2.5K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/api/internal/file/CachingTaskInputFileCollection.java

            } else {
                super.visitChildren(visitor);
            }
        }
    
        @Override
        public void prepareValue() {
            canCache = true;
        }
    
        @Override
        public void cleanupValue() {
            // Keep the files and discard the origin values instead?
            canCache = false;
            cachedValue = null;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Oct 28 15:32:09 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/api/internal/tasks/properties/AbstractValidatingProperty.java

        }
    
        @Override
        public void prepareValue() {
            value.maybeFinalizeValue();
        }
    
        @Override
        public void cleanupValue() {
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 09:10:37 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  10. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/DefaultIncrementalCompilerBuilder.java

            }
    
            @Override
            public void prepareValue() {
            }
    
            @Override
            public void cleanupValue() {
                compileStateCache = null;
                incrementalCompilation = null;
            }
    
            @Override
            public String getDisplayName() {
                return "header files for " + taskPath;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 15:31:28 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top