- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,579 for propertyOf (0.16 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ScalarTypesInManagedModelIntegrationTest.groovy
[Configuration.State, 'org.gradle.api.artifacts.Configuration.State.UNRESOLVED'], [File, 'new File("foo")']].collect { propertyDef -> def (type, value) = propertyDef def propName = type.primitive ? "primitive${type.name.capitalize()}${i++}" : "boxed${type.simpleName}${i++}" [dsl : """${type.canonicalName} get${propName.capitalize()}()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 27.1K bytes - Viewed (0) -
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)