Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 860 for propertyOf (0.17 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/DefaultPropertyTest.groovy

            def property = property()
            property.set(someValue())
            property.set((String) null)
    
            expect:
            !property.present
            property.getOrNull() == null
            property.getOrElse(someValue()) == someValue()
            property.getOrElse(null) == null
        }
    
        def "can't set null provider to discard value"() {
            given:
            def property = property()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 17:09:50 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/AbstractPropertySpec.groovy

            then:
            !property.isFinalized()
    
            when:
            property.finalizeValue()
    
            then:
            property.isFinalized()
        }
    
        def "finalization checking works with providers"() {
            given:
            def property = propertyWithValue(someValue())
    
            expect:
            property.isPresent()
            !property.isFinalized()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 07 12:47:05 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/mylasta/action/FessMessages.java

         * <pre>
         * message:
         * </pre>
         * @param property The property name for the message. (NotNull)
         * @return this. (NotNull)
         */
        public FessMessages addErrorsFrontHeader(String property) {
            assertPropertyNotNull(property);
            add(property, new UserMessage(ERRORS_front_header));
            return this;
        }
    
        /**
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/SystemPropertyInstrumentationInDynamicGroovyIntegrationTest.groovy

                                         "System.getProperties().get('some.property')",
                                         "getProperties().get('some.property')",
                                         "System.getProperty('some.property')",
                                         "System.getProperty(*['some.property'])",
                                         "getProperty('some.property')",
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. subprojects/core-api/src/main/java/org/gradle/api/provider/MapProperty.java

         * This property will query the entries of the map each time the value of this property is queried.
         *
         * <p>This method can also be used to discard the value of the property, by passing {@code null} as the value.
         * The convention for this property, if any, will be used to provide the value instead.
         *
         * @param entries the entries, can be {@code null}
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 16:25:03 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/docs/userguide/authoring-builds/gradle-properties/properties_providers.adoc

    The property must not have any setter methods.
    
    Here is an example of a task type with an `uri` property of type `URI`:
    
    [source,java]
    .Download.java
    ----
    include::{snippetsPath}/plugins/mutableManagedProperty/groovy/buildSrc/src/main/java/Download.java[tags=download]
    ----
    
    Note that for a property to be considered a mutable managed property, the property's getter methods must be `abstract` and have `public` or `protected` visibility.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 24 04:19:09 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  7. subprojects/core-api/src/test/groovy/org/gradle/api/internal/provider/views/AbstractHasMultiValuesPropertyCollectionViewTest.groovy

        }
    
        def "provider modifications should be visible on a view"() {
            given:
            def property = multiValueProperty()
            Collection<String> collection = newCollection(property)
    
            when:
            property.add("first")
            property.add("second")
            property.add("third")
            property.addAll(["forth", "fifth"])
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 15:31:28 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/AbstractClassGenerator.java

        }
    
        private static boolean isNameProperty(PropertyMetadata property) {
            // Property is read only, called "name", has type String and getter is abstract
            return property.isReadOnly() && "name".equals(property.getName()) && property.getType() == String.class && property.getMainGetter().isAbstract();
        }
    
        private static boolean hasPropertyType(PropertyMetadata property) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 21:54:37 UTC 2024
    - 63K bytes
    - Viewed (0)
  9. subprojects/core-api/src/main/java/org/gradle/api/provider/HasMultipleValues.java

        /**
         * Sets the value of the property to the elements of the given iterable, and replaces any existing value. This property will query the elements of the iterable each time the value of this property is queried.
         *
         * <p>This method can also be used to discard the value of the property, by passing {@code null} as the value.
         * The convention for this property, if any, will be used to provide the value instead.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 18:32:13 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  10. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/dom/operations/overlay/DocumentOverlayTest.kt

                    * property(a, literal(33)) -> ShadowedProperty(underlayProperty=property(a, literal(3)), overlayProperty=property(a, literal(33)))
                        - literal(33) -> FromOverlay(documentNode=property(a, literal(33)))
                    * property(b, literal(6)) -> FromOverlay(documentNode=property(b, literal(6)))
                        - literal(6) -> FromOverlay(documentNode=property(b, literal(6)))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:10 UTC 2024
    - 17.6K bytes
    - Viewed (0)
Back to top