Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for withProducer (0.23 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/DefaultProviderFactoryTest.groovy

            zipped instanceof Provider
            zipped.get() == 126
        }
    
        def "zip tracks task dependencies"() {
            def task1 = Stub(Task)
            def a = withProducer(Integer, task1, 5)
            def task2 = Stub(Task)
            def b = withProducer(String, task2, "Hello")
    
            when:
            def zipped = providerFactory.zip(a, b) { i, s -> s.length() == i } as ProviderInternal<Boolean>
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/attributes/DefaultAttributesSchemaTest.groovy

            schema.attribute(attr2)
            producer.attribute(attr2)
            producer.attribute(attr3)
    
            expect:
            schema.withProducer(producer).selectionSchema.hasAttribute(attr1)
            schema.withProducer(producer).selectionSchema.hasAttribute(attr2)
            schema.withProducer(producer).selectionSchema.hasAttribute(attr3)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/transform/DefaultArtifactVariantSelectorFactoryTest.groovy

            set.variants >> variants
            variant1.attributes >> typeAttributes("classes")
            variant1.artifacts >> variant1Artifacts
            variant2.attributes >> typeAttributes("jar")
    
            consumerSchema.withProducer(producerSchema) >> attributeMatcher
            attributeMatcher.matches(_ as Collection, typeAttributes("classes"), _ as AttributeMatchingExplanationBuilder) >> [variant1]
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 13:08:22 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/model/GraphVariantSelector.java

            );
    
            if (result == null) {
                ComponentGraphResolveMetadata targetComponent = targetComponentState.getMetadata();
                AttributeMatcher attributeMatcher = consumerSchema.withProducer(targetComponent.getAttributesSchema());
                GraphSelectionCandidates candidates = targetComponentState.getCandidatesForGraphVariantSelection();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 19:04:04 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/attributes/AttributesSchemaInternal.java

        /**
         * Returns a matcher that uses the consumer rules from this schema, and the producer rules from the given schema.
         */
        AttributeMatcher withProducer(AttributesSchemaInternal producerSchema);
    
        /**
         * Returns a matcher that uses the rules from this schema, and assumes the producer has the same rules.
         */
        AttributeMatcher matcher();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 13:08:22 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/attributes/EmptySchema.java

        }
    
        @Override
        public AttributeMatcher matcher() {
            throw new UnsupportedOperationException();
        }
    
        @Override
        public AttributeMatcher withProducer(AttributesSchemaInternal producerSchema) {
            throw new UnsupportedOperationException();
        }
    
        @Override
        public <T> AttributeMatchingStrategy<T> attribute(Attribute<T> attribute) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 13:08:22 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/ProviderTestUtil.java

            assert values.length > 0;
            return new TestProviderWithChangingValue<>(Cast.uncheckedNonnullCast(cls), Arrays.asList(values), null);
        }
    
        public static <T> ProviderInternal<T> withProducer(Class<T> type, Task producer, T... values) {
            Class<T> valueType = values.length == 0 ? type : Cast.uncheckedNonnullCast(values[0].getClass());
            return new TestProvider<>(valueType, Arrays.asList(values), producer);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 21 05:02:13 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/attributes/DefaultAttributesSchema.java

        }
    
        @Override
        public AttributeMatcher withProducer(AttributesSchemaInternal producerSchema) {
            return matcherCache.computeIfAbsent(producerSchema, key ->
                new DefaultAttributeMatcher(new DefaultAttributeSelectionSchema(this, producerSchema)));
        }
    
        @Override
        public AttributeMatcher matcher() {
            return withProducer(EmptySchema.INSTANCE);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 16:59:54 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/transform/AttributeMatchingArtifactVariantSelectorSpec.groovy

        def dependenciesResolverFactory = Mock(TransformUpstreamDependenciesResolverFactory)
        def attributeMatcher = Mock(AttributeMatcher)
        def attributesSchema = Mock(AttributesSchemaInternal) {
            withProducer(_) >> attributeMatcher
            getConsumerDescribers() >> []
            getFailureDescribers(_) >> []
        }
        def attributesFactory = AttributeTestUtil.attributesFactory()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 13:08:22 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/transform/AttributeMatchingArtifactVariantSelector.java

            AttributeMatcher matcher = schema.withProducer(producer.getSchema());
            ImmutableAttributes componentRequested = attributesFactory.concat(requestAttributes, producer.getOverriddenAttributes());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 30 13:33:37 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top