- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for disallowUnsafeRead (0.25 sec)
-
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/ValueState.java
} return finalizeOnNextGet || consumer == ValueSupplier.ValueConsumer.DisallowUnsafeRead; } @Override public ValueSupplier.ValueConsumer forUpstream(ValueSupplier.ValueConsumer consumer) { if (disallowUnsafeRead) { return ValueSupplier.ValueConsumer.DisallowUnsafeRead; } else { return consumer; } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:55 UTC 2024 - 13.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/PropertySpec.groovy
def property = propertyWithNoValue() property.set(b) property.disallowUnsafeRead() b.set(c) b.attachOwner(owner(), displayName("<b>")) c.set(someValue()) c.attachOwner(owner(), displayName("<c>")) c.disallowUnsafeRead() given: property."$method"() when: b.set(someOtherValue())
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:55 UTC 2024 - 87.8K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractProperty.java
} @Override public void implicitFinalizeValue() { state.disallowChangesAndFinalizeOnNextGet(); } @Override public void disallowUnsafeRead() { state.disallowUnsafeRead(); } protected abstract S finalValue(EvaluationContext.ScopeContext context, S value, ValueConsumer consumer); protected void setSupplier(S supplier) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:54 UTC 2024 - 15.8K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheTaskWiringIntegrationTest.groovy
where: description | propertyConfig "default behaviour" | "" "finalize on read" | "it.finalizeValueOnRead()" "disallow unsafe read" | "it.disallowUnsafeRead()" } def "task input collection property can consume the mapped output of another task"() { taskTypeWithInputFileProperty() taskTypeWithInputListProperty()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 9.2K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollectionSpec.groovy
} def "cannot query files when unsafe reads disallowed and host is not ready"() { given: def file = new File('one') collection.from('a') collection.disallowUnsafeRead() when: collection.files then: def e = thrown(IllegalStateException) e.message == "Cannot query the value of <display> because <reason>."
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Mar 18 17:09:50 UTC 2024 - 53K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollection.java
// so we do not #disallowChanges(). valueState.finalizeOnNextGet(); } @Override public void disallowUnsafeRead() { valueState.disallowUnsafeRead(); } @Override public int getFactoryId() { return ManagedFactories.ConfigurableFileCollectionManagedFactory.FACTORY_ID; } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 23 16:06:55 UTC 2024 - 30.2K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/ValueSupplier.java
*/ ValueProducer getProducer(); boolean calculatePresence(ValueConsumer consumer); enum ValueConsumer { DisallowUnsafeRead, IgnoreUnsafeRead } /** * Carries information about the producer of a value. */ interface ValueProducer { NoProducer NO_PRODUCER = new NoProducer();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Feb 09 20:31:29 UTC 2024 - 27.2K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/CollectionPropertySpec.groovy
def a = property() def b = property() def c = elementProperty() def property = property() property.disallowUnsafeRead() property.addAll(a) a.addAll(b) a.attachOwner(owner(), displayName("<a>")) b.attachOwner(owner(), displayName("<b>")) property.add(c)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:55 UTC 2024 - 49.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/MapPropertySpec.groovy
def a = property() def b = property() def c = valueProperty() def property = property() property.disallowUnsafeRead() property.putAll(a) a.putAll(b) a.attachOwner(owner(), displayName("<a>")) b.attachOwner(owner(), displayName("<b>")) property.put("c", c)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:55 UTC 2024 - 58.7K bytes - Viewed (0)