Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,106 for propertyOf (0.23 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. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/ManagedFactories.java

                }
                // TODO - should preserve the property type (which may be different to the provider type)
                ProviderInternal<S> provider = Cast.uncheckedNonnullCast(state);
                return type.cast(propertyOf(provider.getType(), provider));
            }
    
            <V> Property<V> propertyOf(Class<V> type, Provider<V> value) {
                return propertyFactory.property(type).value(value);
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/binding/ManagedProperty.java

     *
     * <p>The managed property represents a property that is able to serve all its declaring view methods. For example, if the view
     * types declaring the struct only specify the property via a getter, then the managed property will be read-only. However, if
     * even one of the view types declare a setter for the property, it will be a read-write property. </p>
     *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/annotations/TypeMetadataWalker.java

        /**
         * A factory method for a walker that can visit the property hierarchy of an instance.
         *
         * When visiting a nested property, child properties are discovered using the type of the
         * return property value. This can be a more specific type than the return type of the property's
         * getter method (and can declare additional child properties).
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/api/tasks/WriteProperties.java

         *
         * @see #properties(Map)
         * @see #property(String, Object)
         */
        public void setProperties(Map<String, Object> properties) {
            this.properties.clear();
            properties(properties);
        }
    
        /**
         * Adds a property to be written to the properties file.
         * <p>
         * A property's value will be coerced to a <code>String</code> with <code>String#valueOf(Object)</code> or a
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 8.3K 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. subprojects/core/src/test/groovy/org/gradle/api/internal/model/DefaultObjectFactoryTest.groovy

        }
    
        def "list property has empty list as value"() {
            expect:
            def property = factory.listProperty(String)
            property.present
            property.get().empty
        }
    
        def "can create list property with primitive type"() {
            given:
            def property = factory.listProperty(type)
    
            expect:
            property.elementType == boxedType
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Oct 28 16:04:05 UTC 2022
    - 4.8K bytes
    - Viewed (0)
Back to top