Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for disambiguation (0.32 sec)

  1. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/model/MultipleCandidateMatcher.java

     * </li>
     * <li>
     * Otherwise continue with disambiguation. Disambiguation iterates through the attributes and presents the different values to the {@link AttributeSelectionSchema}.
     * The schema can declare a subset of these values as preferred. Candidates whose value is not in that subset are rejected. If a single candidate remains after
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 19.4K bytes
    - Viewed (0)
  2. subprojects/diagnostics/src/integTest/groovy/org/gradle/api/tasks/diagnostics/ResolvableConfigurationsReportTaskIntegrationTest.groovy

    Disambiguation Rules
    --------------------------------------------------
    The following Attributes have disambiguation rules defined.
    
        - flavor""")
    
            and:
            doesNotHaveLegacyLegend()
        }
    
        def "disambiguation rules are printed if added to attributes"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 13 19:52:38 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/docs/userguide/dep-man/04-modeling-features/variant_attributes.adoc

    [[sec:abm_disambiguation_rules]]
    === Attribute disambiguation rules
    
    Since multiple values for an attribute can be _compatible_, Gradle needs to choose the "best" candidate between all compatible candidates. This is called "disambiguation".
    
    This is done by implementing an link:{javadocPath}/org/gradle/api/attributes/AttributeDisambiguationRule.html[attribute disambiguation rule].
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 18:51:23 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/StronglyTypedConfigurationAttributesResolveIntegrationTest.groovy

            failure.assertHasCause("Unexpected type for attribute 'flavor' provided. Expected a value of type Flavor but found a value of type java.lang.Integer.")
        }
    
        def "selects best compatible match using consumers disambiguation rules when multiple are compatible"() {
            given:
            createDirs("a", "b")
            file('settings.gradle') << "include 'a', 'b'"
            buildFile << """
                $typeDefs
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 20:50:18 UTC 2024
    - 48.1K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/api/internal/artifacts/JavaEcosystemSupportTest.groovy

            Usage.JAVA_RUNTIME           | JavaEcosystemSupport.DEPRECATED_JAVA_RUNTIME_JARS      | true
        }
    
        @Issue("gradle/gradle#8700")
        def "check usage disambiguation rules (consumer=#consumer, candidates=#candidates, selected=#preferred)"() {
            given:
            JavaEcosystemSupport.UsageDisambiguationRules rules = new JavaEcosystemSupport.UsageDisambiguationRules(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 13 19:52:38 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  6. test/typeparam/issue54456.go

    // The Go 1.18 frontend failed to disambiguate instantiations of
    // different, locally defined generic types with the same name.
    //
    // The unified frontend also exposed the scope-disambiguation mangling
    // to end users in reflect data.
    
    package main
    
    import (
    	"reflect"
    )
    
    func one() any { type T[_ any] int; return T[int](0) }
    func two() any { type T[_ any] int; return T[int](0) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 18:13:48 UTC 2022
    - 898 bytes
    - Viewed (0)
  7. src/cmd/compile/internal/test/testdata/pgo/devirtualize/mult.pkg/mult.go

    }
    
    type NegMult struct{}
    
    func (NegMult) Multiply(a, b int) int {
    	for i := 0; i < 1000; i++ {
    		sink++
    	}
    	return -1 * a * b
    }
    
    // N.B. Different types than AddFunc to test intra-line disambiguation.
    type MultFunc func(int64, int64) int64
    
    func MultFn(a, b int64) int64 {
    	for i := 0; i < 1000; i++ {
    		sink++
    	}
    	return a * b
    }
    
    func NegMultFn(a, b int64) int64 {
    	for i := 0; i < 1000; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 13 18:17:57 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/transform/AttributeMatchingArtifactVariantSelectorSpec.groovy

            2 * attributeMatcher.matches(_, _, _) >> [variant, otherVariant]
            2 * attributeMatcher.isMatching(_, _, _) >> true
            0 * consumerProvidedVariantFinder._
        }
    
        def 'does not perform schema disambiguation against a single transform result'() {
            given:
            def transformed = Mock(ResolvedArtifactSet)
            def variants = [variant]
            def transformedVariants = transformedVariants(variants)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 13:08:22 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/model/AttributeSelectionUtils.java

                // artifact repository. We always check whether the schema has a more strongly typed
                // version of an attribute and use that one instead to apply its disambiguation rules.
                Attribute<?> schemaAttribute = schema.getAttribute(extraAttribute.getName());
                if (schemaAttribute != null) {
                    extraAttributesArray[i] = schemaAttribute;
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/model/DefaultAttributeMatcher.java

            // Often times, collections of candidates will themselves differ even though their attributes are the same.
            // Disambiguating two different candidate lists which map to the same attribute lists in reality performs
            // the same work, so instead we cache disambiguation results based on the attributes being disambiguated.
            // The result of this is a list of indices into the original candidate list from which the
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 9.6K bytes
    - Viewed (0)
Back to top