Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 875 for propertyOf (0.41 sec)

  1. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/isolation/IsolatedActionSerializerTest.kt

        }
    
        @Test
        fun `can serialize Kotlin action with Property`() {
            val loaded = valueCarriedBy(roundtripOf(isolatedActionCarrying(propertyOf("42"))))
            assertThat(
                loaded.get(),
                equalTo("42")
            )
        }
    
        @Test
        fun `can serialize Java lambda with Property`() {
            assertProviderRoundtrip(
                propertyOf("42"),
                "42"
            )
        }
    
        @Test
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. subprojects/core-api/src/main/java/org/gradle/api/provider/Property.java

         */
        Property<T> value(@Nullable T value);
    
        /**
         * Sets the property to have the same value as the given provider, replacing whatever value the property already had.
         * This property will track the value of the provider and query its value each time the value of the property is queried.
         * When the provider has no value, this property will also have no value. This is the same as {@link #set(Provider)}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 16:06:55 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  3. maven-model-builder/src/test/resources/poms/validation/raw-model/profile-activation-property-with-project-expressions.xml

      <packaging>pom</packaging>
    
      <profiles>
    
        <profile>
          <id>property-name-project-version</id>
          <activation>
            <property>
              <name>${project.version}</name>
            </property>
          </activation>
        </profile>
        <profile>
          <id>property-value-project-version</id>
          <activation>
            <property>
              <name>project.version</name>
              <value>${project.version}</value>
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu May 02 13:13:07 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/providers/property/tests/property.sample.conf

    Laura Kassovic <******@****.***> 1712936267 -0700
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 15:37:47 UTC 2024
    - 176 bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/MapPropertySpec.groovy

            given:
            property.set(notDefined())
            and:
            property.put('k1', 'v1')
            property.put('k2', Providers.of('v2'))
            property.putAll(['k3': 'v3'])
            property.putAll(Providers.of(['k4': 'v4']))
    
            expect:
            !property.present
            property.getOrNull() == null
            property.getOrElse(['kk': 'vv']) == ['kk': 'vv']
    
            when:
            property.get()
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 58.7K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/docs/userguide/authoring-builds/tasks/lazy_configuration.adoc

    ** `Property` extends the `Provider` interface.
    ** The method link:{javadocPath}/org/gradle/api/provider/Property.html#set-T-[Property.set(T)] specifies a value for the property, overwriting whatever value may have been present.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 05:33:15 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractProperty.java

        /**
         * Creates a shallow copy of this property. Further changes to this property (via {@code set(...)}, or {@code convention(Object...)}) do not
         * change the copy. However, the copy still reflects changes to the underlying providers that constitute this property. Consider the following snippet:
         * <pre>
         *     def upstream = objects.property(String).value("foo")
         *     def property = objects.property(String).value(upstream)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:54 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/PropertySpec.groovy

            property.get() == someValue()
    
            property.set(someOtherValue())
            property.present
            property.get() == someOtherValue()
        }
    
        def "can use null convention value"() {
            def property = propertyWithNoValue()
            assert property.getOrNull() != someValue()
    
            expect:
            nullConvention(property)
    
            !property.present
            property.getOrNull() == null
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 87.8K bytes
    - Viewed (0)
  9. api/maven-api-core/src/main/java/org/apache/maven/api/services/ProjectManager.java

         */
        @Nonnull
        Map<String, String> getProperties(@Nonnull Project project);
    
        /**
         * Set a given project property.
         *
         * @param project the project to modify
         * @param key they property's key
         * @param value the value or {@code null} to unset the property
         */
        void setProperty(@Nonnull Project project, @Nonnull String key, @Nullable String value);
    
        @Nonnull
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Feb 09 17:13:31 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractCollectionProperty.java

     *     of the Java collection this collection property corresponds to</li>
     *     <li>{@link CollectingSupplier}, when the collection is still being added to - in that case,
     *     the collecting supplier will wrap a {@link Collector} that lazily represents the yet-to-be realized contents of the collection - see below for details</li>
     * </ul>
     *
     * <h3>Collectors</h3>
     * <p>
    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