Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for AttributeValue (0.18 sec)

  1. subprojects/core/src/main/java/org/gradle/api/internal/attributes/AttributeValue.java

     * @param <T> the type of the attribute
     *
     * @since 3.3
     */
    public interface AttributeValue<T> {
        AttributeValue<Object> MISSING = new AttributeValue<Object>() {
            @Override
            public boolean isPresent() {
                return false;
            }
    
            @Nullable
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 12:57:50 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/transform/AttributesToMapConverter.java

            Object attributeValue = attributeContainer.getAttribute(attribute);
            if (attributeValue == null) {
                throw new IllegalStateException("No attribute value for " + attribute);
            }
    
            if (attributeValue instanceof Named) {
                return ((Named) attributeValue).getName();
            } else if (attributeValue instanceof Object[]) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/model/AttributeMatcher.java

        class MatchingDescription<T> {
            private final Attribute<T> requestedAttribute;
            private final AttributeValue<T> requestedValue;
            private final AttributeValue<T> found;
            private final boolean match;
    
            public MatchingDescription(Attribute<T> requestedAttribute, AttributeValue<T> requestedValue, AttributeValue<T> found, boolean match) {
                this.requestedAttribute = requestedAttribute;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/configurations/ResolveConfigurationResolutionBuildOperationResult.java

                        Object attributeValue = source.getAttribute(attribute);
                        if (type.equals(Boolean.class)) {
                            result.attribute((Attribute<Boolean>) attribute, (Boolean) attributeValue);
                        } else if (type.equals(String.class)) {
                            result.attribute((Attribute<String>) attribute, (String) attributeValue);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 17:29:40 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/api/internal/attributes/ImmutableAttributes.java

         */
        <T> AttributeValue<T> findEntry(Attribute<T> key);
    
        /**
         * Locates the entry for the attribute with the given name.
         *
         * @param name the name of an attribute to locate in this container
         * @return the value for the attribute in this container, or {@link AttributeValue#MISSING} if not present
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 12:57:50 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. platforms/jvm/platform-jvm/src/test/groovy/org/gradle/api/java/archives/internal/DefaultManifestTest.groovy

            and:
            // Means 'long russian text'
            String attributeValue = 'com.acme.example.pack.**, длинный.текст.на.русском.языке.**'
            DefaultManifest gradleManifest = new DefaultManifest(fileResolver)
            gradleManifest.getAttributes().put('Looong-Name-Of-Manifest-Entry', attributeValue)
    
            when:
            gradleManifest.writeTo('manifestFile')
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 15.1K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/model/DefaultAttributeMatcher.java

            ImmutableAttributes candidateAttributes = candidate.asImmutable();
    
            for (Attribute<?> attribute : requestedAttributes.keySet()) {
                AttributeValue<?> requestedValue = requestedAttributes.findEntry(attribute);
                AttributeValue<?> candidateValue = candidateAttributes.findEntry(attribute.getName());
                if (candidateValue.isPresent()) {
    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/internal/component/model/MultipleCandidateMatcher.java

            for (int a = 0; a < requestedAttributes.size(); a++) {
                Attribute<?> attribute = requestedAttributes.get(a);
                AttributeValue<?> attributeValue = requested.findEntry(attribute);
                requestedAttributeValues[a] = attributeValue.isPresent() ? attributeValue.get() : null;
            }
            return requestedAttributeValues;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 19.4K bytes
    - Viewed (0)
  9. platforms/jvm/language-jvm/src/integTest/groovy/org/gradle/api/tasks/bundling/JarEncodingIntegrationTest.groovy

            // Means 'long russian text'
            def attributeValue = 'com.acme.example.pack.**, длинный.текст.на.русском.языке.**'
    
            def mergedManifestFilename = 'manifest-with-split-multi-byte-char.txt'
            def mergedManifest = new Manifest()
            mergedManifest.mainAttributes.putValue('Manifest-Version', '1.0')
            mergedManifest.mainAttributes.putValue(attributeNameMerged, attributeValue)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 12:15:28 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/metadata/GradleModuleMetadataCompatibilityConverter.java

                if (attributes.contains(USAGE_STRING_ATTRIBUTE)) {
                    String attributeValue = attributes.getAttribute(USAGE_STRING_ATTRIBUTE);
                    if (attributeValue.endsWith("-jars")) {
                        updatedAttributes = attributesFactory.concat(updatedAttributes, USAGE_STRING_ATTRIBUTE, new CoercingStringValueSnapshot(attributeValue.replace("-jars", ""), instantiator));
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 5.3K bytes
    - Viewed (0)
Back to top