Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 196 for realized (0.26 sec)

  1. platforms/native/language-native/src/test/groovy/org/gradle/language/internal/DefaultBinaryCollectionTest.groovy

        }
    
        def "cannot add elements after collection is realized"() {
            given:
            container.add(Stub(SwiftBinary))
            container.realizeNow()
    
            when:
            container.add(Stub(SwiftBinary))
    
            then:
            def e = thrown(IllegalStateException)
            e.message == 'Cannot add an element to this collection as it has already been realized.'
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/api/internal/collections/AbstractIterationOrderRetainingElementSource.java

            @Override
            public void collectInto(ImmutableCollection.Builder<T> builder) {
                if (!realized) {
                    realize();
                }
                builder.addAll(cache);
            }
    
            List<T> getValues() {
                if (!realized) {
                    realize();
                }
                return cache;
            }
    
            public boolean remove(T value) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 04 20:04:06 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  3. platforms/native/language-native/src/main/java/org/gradle/language/internal/DefaultBinaryCollection.java

            }
            elements.add(element);
        }
    
        /**
         * Realizes the contents of this collection, running configuration actions and firing notifications. No further elements can be added.
         */
        public void realizeNow() {
            if (state != State.Collecting) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/api/internal/AbstractDomainObjectCollectionSpec.groovy

            // Realize all object of type `type`
            def element = container.withType(type).iterator().next()
    
            when:
            def didRemoved = container.remove(element)
    
            then:
            didRemoved
    
            and:
            0 * _
        }
    
        def "will execute remove action when removing external provider only for realized elements"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/api/internal/collections/SortedSetElementSource.java

                // Collect elements discarding potential side effects aggregated in the returned value
                collector.collectInto(builder);
                List<T> realized = builder.build();
                for (T element : realized) {
                    doAddRealized(element);
                }
            }
        }
    
        private void doAddRealized(T value) {
            if (values.add(value) && addRealizedAction != null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/api/internal/collections/ElementSource.java

    public interface ElementSource<T> extends Iterable<T>, WithEstimatedSize, PendingSource<T>, WithMutationGuard {
        /**
         * Iterates over and realizes each of the elements of this source.
         */
        @Override
        Iterator<T> iterator();
    
        /**
         * Iterates over only the realized elements (without flushing any pending elements)
         */
        Iterator<T> iteratorNoFlush();
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 02 15:12:15 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/TaskContainerIntegrationTest.groovy

                tasks.register("bar", Delete)
            """
    
            when:
            succeeds "help"
    
            then:
            // help task is realized and configured
            outputContains("configured :help")
    
            // are "built-in" tasks realized and configured?
            if (realizesBuiltInTasks) {
                outputContains("configured :tasks")
                outputContains("configured :projects")
            } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 07:46:00 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/DeferredTaskConfigurationIntegrationTest.groovy

                    doLast {
                        assert defaultTaskRealizedCount == 0, "All DefaultTask shouldn't be realized"
                        assert zipTaskRealizedCount == 1, "All Zip task should be realized"
                    }
                }
            '''
    
            expect:
            succeeds "foo"
        }
    
        def "realizes only the task of the given type when verifying if a filtered task collection is empty"() {
            buildFile << '''
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:33 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/api/internal/collections/ElementSourceSpec.groovy

            and:
            source.iterator().collect() == iterationOrder("foo", "bar", "baz", "fizz", "fuzz", "bazz")
        }
    
        def "once realized, provided values appear like realized values"() {
            when:
            source.addPending(provider("foo"))
            source.add("bar")
            source.add("baz")
            source.addPending(provider("fizz"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Aug 25 10:08:46 UTC 2022
    - 9.5K bytes
    - Viewed (0)
  10. subprojects/core/src/test/groovy/org/gradle/api/internal/collections/IterationOrderRetainingSetElementSourceTest.groovy

            source.contains("foo")
        }
    
        def "an element added as both a provider and a realized value is not duplicated"() {
            when:
            source.add("foo")
            source.addPending(provider("foo"))
    
            then:
            source.iterator().collect() == ["foo"]
        }
    
        def "an element added as both a provider and a realized value has the correct order"() {
            when:
            source.addPending(provider("foo"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 06:43:26 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top