Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for Conventions (0.88 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/extensibility/ConventionAwareHelper.java

                    switch (value.getMaximumNumberOfParameters()) {
                        case 0:
                            return value.call();
                        case 1:
                            return value.call(convention);
                        default:
                            return value.call(convention, conventionAwareObject);
                    }
                }
            });
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 09:53:33 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/ValueState.java

         * @param convention the new convention
         * @return the given value, if this value state is not explicit, otherwise the new convention value
         */
        public abstract S applyConvention(S value, S convention);
    
        /**
         * Marks this value state as being non-explicit. Returns the convention, if any.
         */
        public abstract S implicitValue(S convention);
    
        public abstract S implicitValue();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/extensibility/DefaultConvention.java

        }
    
        @Override
        public DynamicObject getExtensionsAsDynamicObject() {
            // This implementation of Convention doesn't log a deprecation warning
            // because it mixes both extensions and conventions.
            // Instead, the returned object logs a deprecation warning when
            // a convention is actually accessed.
            return extensionsDynamicObject;
        }
    
        @Deprecated
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 13:45:02 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/AbstractClassGenerator.java

        }
    
        private static boolean isIneligibleForConventionMapping(PropertyMetadata property) {
            // Provider API types and convention-supporting types in general should have conventions set through convention() instead of
            // using convention mapping.
            return Provider.class.isAssignableFrom(property.getType()) || SupportsConvention.class.isAssignableFrom(property.getType());
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 21:54:37 UTC 2024
    - 63K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractProperty.java

                // special case: discarding value without a convention restores the initial state
                state.implicitValue(getDefaultConvention());
                value = getDefaultValue();
            } else {
                // otherwise, the convention will become the new value
                value = state.implicitValue(state.convention());
            }
        }
    
        /**
         * Discards the convention of this property.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:54 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/DefaultListProperty.java

            return this;
        }
    
        @Override
        public ListProperty<T> convention(@Nullable Iterable<? extends T> elements) {
            super.convention(elements);
            return this;
        }
    
        @Override
        public ListProperty<T> convention(Provider<? extends Iterable<? extends T>> provider) {
            super.convention(provider);
            return this;
        }
    
        @Override
        public ListProperty<T> unset() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 19:56:59 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/MapPropertyInternal.java

        /**
         * Adds a map entry to the property value.
         *
         * <p>
         * When invoked on a property with no value, this method first sets the value
         * of the property to its current convention value, if set, or an empty map.
         * </p>
         *
         * @param key the key
         * @param value the value
         */
        @Incubating
        void insert(K key, V value);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 18:32:13 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleUserManualPlugin.java

                userManual.getRoot().convention(extension.getSourceRoot().dir("userguide"));
                userManual.getStagingRoot().convention(extension.getStagingRoot().dir("usermanual"));
                // TODO: These should be generated too
                userManual.getSnippets().convention(layout.getProjectDirectory().dir("src/snippets"));
                userManual.getSamples().convention(layout.getProjectDirectory().dir("src/samples"));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 05:46:51 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/CollectionPropertyInternal.java

        /**
         * Adds an element to the property value.
         *
         * <p>
         * When invoked on a property with no value, this method first sets the value
         * of the property to its current convention value, if set, or an empty collection.
         * </p>
         *
         * @param element The element
         */
        @Incubating
        void append(T element);
    
        /**
         * Adds an element to the property value.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 18:32:13 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractCollectionProperty.java

        @Override
        public HasMultipleValues<T> convention(@Nullable Iterable<? extends T> elements) {
            if (elements == null) {
                unsetConvention();
            } else {
                setConvention(new CollectingSupplier(new ElementsFromCollection<>(elements)));
            }
            return this;
        }
    
        @Override
        public HasMultipleValues<T> convention(Provider<? extends Iterable<? extends T>> provider) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 29.8K bytes
    - Viewed (0)
Back to top