Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for withProducer (0.15 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/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)
  3. 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)
  4. 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)
  5. 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)
Back to top