- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for disallowChanges (0.21 sec)
-
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/ValueState.java
public void beforeMutate(Describable displayName) { if (disallowChanges) { throw new IllegalStateException(String.format("The value for %s cannot be changed any further.", displayName.getDisplayName())); } } @Override public void disallowChanges() { disallowChanges = true; } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:55 UTC 2024 - 13.7K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/api/provider/HasConfigurableValue.java
* * <p>You can use this method along with {@link #disallowChanges()} to indicate that the value has been configured and that the final value is ready to calculate,
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jan 05 16:10:02 UTC 2021 - 4.2K bytes - Viewed (0) -
platforms/jvm/jacoco/src/main/java/org/gradle/testing/jacoco/tasks/JacocoReport.java
private final JacocoReportsContainer reports; public JacocoReport() { super(); projectName.value(getProject().getName()).disallowChanges(); reports = getInstantiator().newInstance(JacocoReportsContainerImpl.class, this, getCallbackActionDecorator()); } /** * The reported project name. *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Mar 25 23:19:29 UTC 2024 - 2.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/PropertySpec.groovy
0 * _ when: property.finalizeValue() property.implicitFinalizeValue() property.implicitFinalizeValue() property.disallowChanges() then: 0 * _ } def "can finalize after changes disallowed"() { def property = propertyWithNoValue() def function = Mock(Callable)
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
finalizeNow(context, ValueConsumer.IgnoreUnsafeRead); } } } @Override public void disallowChanges() { state.disallowChanges(); } @Override public void finalizeValueOnRead() { state.finalizeOnNextGet(); } @Override public void implicitFinalizeValue() {
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/file-collections/src/test/groovy/org/gradle/api/internal/file/FileSystemPropertySpec.groovy
} def "cannot set value using file when changes disallowed"() { given: def file = tmpDir.file("thing") def prop = propertyWithNoValue() prop.disallowChanges() when: prop.set(file) then: def e = thrown(IllegalStateException) e.message == 'The value for this property cannot be changed any further.' }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 4.9K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollection.java
valueState = valueState.finalState(); } public boolean isFinalizing() { return valueState.isFinalizing(); } @Override public void disallowChanges() { valueState.disallowChanges(); } @Override public void finalizeValueOnRead() { valueState.finalizeOnNextGet(); } @Override public void implicitFinalizeValue() {
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/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollectionSpec.groovy
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/integTest/groovy/org/gradle/api/file/FileCollectionLifecycleIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 10:55:07 UTC 2023 - 11.4K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/CollectionPropertyIntegrationTest.groovy
def provider = providers.provider { [++counter, ++counter] } def property = objects.listProperty(Integer) property.set(provider) assert property.get() == [1, 2] assert property.get() == [3, 4] property.disallowChanges() assert property.get() == [5, 6] assert property.get() == [7, 8] property.set([1]) """ when: fails() then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jan 12 19:57:00 UTC 2024 - 15K bytes - Viewed (0)