Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 175 for realized (0.28 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/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)
  7. 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)
  8. 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)
  9. subprojects/core/src/main/java/org/gradle/api/internal/tasks/DefaultRealizableTaskCollection.java

    public class DefaultRealizableTaskCollection<T extends Task> extends DelegatingNamedDomainObjectSet<T> implements TaskCollection<T>, TaskDependencyContainer {
    
        private final Class<T> type;
        private final AtomicBoolean realized = new AtomicBoolean();
        private final MutableModelNode modelNode;
        private final Instantiator instantiator;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 01 08:18:33 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  10. platforms/ide/ide-native/src/main/groovy/org/gradle/ide/visualstudio/plugins/VisualStudioPluginRules.java

            }
        }
    
        static class VisualStudioPluginRootRules extends RuleSource {
            // This ensures that subprojects are realized and register their project and project configuration IDE artifacts
            @Mutate
            public static void ensureSubprojectsAreRealized(TaskContainer tasks, ProjectIdentifier projectIdentifier, ServiceRegistry serviceRegistry) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 3.5K bytes
    - Viewed (0)
Back to top