- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 52 for disambiguation (0.21 sec)
-
subprojects/core-api/src/main/java/org/gradle/api/attributes/AttributeMatchingStrategy.java
* a disambiguation rule based on an order defined by the provided * {@link Comparator}.</p> * * <p>All provider values which are lower than or equal the consumer value are * compatible. When disambiguating, it will pick the highest compatible value.</p> * * @param comparator the comparator to use for compatibility and disambiguation */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 11 20:41:53 UTC 2018 - 2.2K bytes - Viewed (0) -
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) -
subprojects/core-api/src/main/java/org/gradle/api/attributes/DisambiguationRuleChain.java
import org.gradle.api.Action; import org.gradle.api.ActionConfiguration; import org.gradle.internal.HasInternalProtocol; import java.util.Comparator; /** * <p>A chain of disambiguation rules. By default the chain is empty and will not do any disambiguation.</p> * * <p>For a given set of rules, the execution is done <i>in order</i>, and interrupts as soon as a rule
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jul 22 14:14:42 UTC 2019 - 3.1K bytes - Viewed (0) -
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) -
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 (1) -
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) -
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) -
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) -
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) -
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)