Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 116 for isMatching (0.13 sec)

  1. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/transform/ConsumerProvidedVariantFinderTest.groovy

            1 * attributeMatcher.isMatching(sourceVariant.getAttributes(), fromSource) >> true
            1 * attributeMatcher.isMatching(sourceVariant.getAttributes(), fromOther) >> false
            // other variant matches fromOther, but not fromSource
            1 * attributeMatcher.isMatching(otherVariant.getAttributes(), fromSource) >> false
            1 * attributeMatcher.isMatching(otherVariant.getAttributes(), fromOther) >> true
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 22.7K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/model/AttributeMatcher.java

        /**
         * Determines whether the given candidate is compatible with the requested criteria.
         */
        boolean isMatching(AttributeContainerInternal candidate, AttributeContainerInternal requested);
    
        <T> boolean isMatching(Attribute<T> attribute, T candidate, T requested);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/model/DefaultAttributeMatcherTest.groovy

            matcher.matches([candidate2, candidate3, candidate4], requested, explanationBuilder) == [candidate4]
    
            matcher.isMatching(candidate1, requested)
            !matcher.isMatching(candidate2, requested)
            !matcher.isMatching(candidate3, requested)
            matcher.isMatching(candidate4, requested)
        }
    
        def "selects candidate with additional attributes and whose values match"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 24.8K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/transform/ConsumerProvidedVariantFinder.java

                            ImmutableAttributes sourceAttrs = sources.get(i);
                            if (matcher.isMatching(sourceAttrs, candidate.getFrom())) {
                                ImmutableAttributes rootAttrs = attributesFactory.concat(sourceAttrs, candidate.getTo());
                                if (matcher.isMatching(rootAttrs, state.requested)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/attributes/DefaultAttributesSchemaTest.groovy

            expect:
            !schema.matcher().selectionSchema.matchValue(attribute, "a", "b")
            schema.matcher().selectionSchema.matchValue(attribute, "a", "a")
    
            !schema.matcher().isMatching(attribute, "a", "b")
            schema.matcher().isMatching(attribute, "a", "a")
        }
    
        static class DoNothingRule implements AttributeCompatibilityRule<String> {
            static int count
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/compatibility/CrossVersionTestInterceptor.groovy

            for (String targetGradleVersion : targetGradleVersions) {
                if (isMatching(targetGradleVersion, previousVersion.version.version)) {
                    return true
                }
            }
            return false
        }
    
        private static boolean isMatching(String targetGradleVersion, String candidate) {
            if (targetGradleVersion.endsWith('+')) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/model/DefaultAttributeMatcher.java

            this.schema = schema;
        }
    
        @Override
        public AttributeSelectionSchema getSelectionSchema() {
            return schema;
        }
    
        @Override
        public boolean isMatching(AttributeContainerInternal candidate, AttributeContainerInternal requested) {
            if (requested.isEmpty() || candidate.isEmpty()) {
                return true;
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/transform/AttributeMatchingArtifactVariantSelector.java

            // while y may not be compatible with x. We accept compatibility in either direction as sufficient for this method.
            return !matcher.isMatching(firstCandidate.getAttributes(), secondCandidate.getAttributes()) &&
                !matcher.isMatching(secondCandidate.getAttributes(), firstCandidate.getAttributes());
        }
    
        private static class TraceDiscardedVariants implements AttributeMatchingExplanationBuilder {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 30 13:33:37 UTC 2024
    - 10K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/dsl/dependencies/GradlePluginVariantsSupportTest.groovy

            def producer = versionAttribute('7.0')
    
            then:
            accepts == (schema.matcher().matches([producer], consumer, ep) == [producer])
            accepts == schema.matcher().isMatching(producer, consumer)
    
            where:
            currentGradleVersion       | acceptsOrRejects
            '7.0'                      | 'accepts'
            '7.0-20210211230048+0000'  | 'accepts'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/transform/AttributeMatchingArtifactVariantSelectorSpec.groovy

            1 * variantSet.getOverriddenAttributes() >> ImmutableAttributes.EMPTY
            2 * attributeMatcher.matches(_, _, _) >> [variant, otherVariant]
            2 * attributeMatcher.isMatching(_, _, _) >> true
            0 * consumerProvidedVariantFinder._
        }
    
        def 'does not perform schema disambiguation against a single transform result'() {
            given:
    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