Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getMatchingStrategy (0.19 sec)

  1. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/attributes/DefaultAttributesSchemaTest.groovy

            schema.attribute(Attribute.of('a', Flavor))
    
            when:
            schema.getMatchingStrategy(Attribute.of('someOther', Flavor))
    
            then:
            def e = thrown(IllegalArgumentException)
            e.message == 'Unable to find matching strategy for someOther'
    
            when:
            schema.getMatchingStrategy(Attribute.of('picard', Flavor))
    
            then:
            e = thrown(IllegalArgumentException)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  2. subprojects/diagnostics/src/main/java/org/gradle/api/tasks/diagnostics/internal/configurations/model/ConfigurationReportModelFactory.java

                    .collect(Collectors.toList());
            }
    
            private boolean hasCompatibilityRules(Attribute<?> attribute) {
                final AttributeMatchingStrategy<?> matchingStrategy = attributesSchema.getMatchingStrategy(attribute);
                final DefaultCompatibilityRuleChain<?> ruleChain = (DefaultCompatibilityRuleChain<?>) matchingStrategy.getCompatibilityRules();
                return ruleChain.doesSomething();
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 05 20:34:52 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/attributes/DefaultAttributesSchema.java

            this.failureDescriberRegistry = ResolutionFailureDescriberRegistry.emptyRegistry(instanceGenerator);
        }
    
        @Override
        public <T> AttributeMatchingStrategy<T> getMatchingStrategy(Attribute<T> attribute) {
            AttributeMatchingStrategy<?> strategy = strategies.get(attribute);
            if (strategy == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 16:59:54 UTC 2024
    - 16.1K bytes
    - Viewed (0)
Back to top