- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for attachProducer (0.23 sec)
-
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/properties/StaticValueTest.groovy
given: def value = StaticValue.of(property) value.call() == property value.taskDependencies == property when: value.attachProducer(task) then: 1 * property.attachProducer(task) when: value.maybeFinalizeValue() then: 1 * property.implicitFinalizeValue() } def "creates value for null value"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 2.4K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/StaticValue.java
return context -> context.add(value); } return TaskDependencyContainer.EMPTY; } public void attachProducer(Task producer) { if (value instanceof PropertyInternal) { ((PropertyInternal<?>) value).attachProducer((ModelObject) producer); } } @Override public void maybeFinalizeValue() { if (value instanceof HasConfigurableValue) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 2.2K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/DefaultFilePropertyFactoryTest.groovy
def task = Stub(Task) def owner = Stub(ModelObject) owner.taskThatOwnsThisObject >> task def action = Mock(Action) when: var.attachProducer(owner) def producer = var.producer then: producer.known when: producer.visitProducerTasks(action) then: 1 * action.execute(task)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 10.4K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/FileSystemPropertySpec.groovy
given: def task = Stub(Task) def prop = propertyWithNoValue() def location = prop.locationOnly prop.attachProducer(owner(task)) assertHasProducer(prop, task) expect: assertHasNoProducer(location) } def "location provider does not check producer when source property is strict"() {
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/model-core/src/test/groovy/org/gradle/api/internal/provider/FilteringProviderTest.groovy
_ * owner.taskThatOwnsThisObject >> task def property = TestUtil.objectFactory().property(String) property.attachOwner(owner, Describables.of("<prop>")) property.attachProducer(owner) property.set("12") return property } Property<String> propertyWithCompletedProducer() { def task = Mock(Task) def state = Mock(TaskState)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Dec 15 20:21:32 UTC 2023 - 6.4K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/tasks/properties/annotations/OutputPropertyRoleAnnotationHandler.java
return annotations; } @Override public void applyRoleTo(ModelObject owner, Object target) { if (target instanceof PropertyInternal) { ((PropertyInternal<?>) target).attachProducer(owner); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sun Mar 22 21:24:08 UTC 2020 - 1.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/PropertyInternal.java
/** * Associates this property with the task that produces its value. */ void attachProducer(ModelObject owner); /** * A simple getter that checks if this property has been finalized. * * @return {@code true} if this property has been finalized, {@code false} otherwise */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 10 11:58:44 UTC 2024 - 1.3K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/TransformBackedProviderTest.groovy
_ * owner.taskThatOwnsThisObject >> task def property = TestUtil.objectFactory().property(String) property.attachOwner(owner, Describables.of("<prop>")) property.attachProducer(owner) property.set("12") return property } Property<String> propertyWithCompletedProducer() { def task = Mock(Task) def state = Mock(TaskState)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Feb 02 15:06:10 UTC 2024 - 7.4K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/tasks/DefaultTaskOutputs.java
return taskMutator.mutate("TaskOutputs.file(Object)", (Callable<TaskOutputFilePropertyBuilder>) () -> { StaticValue value = new StaticValue(path); value.attachProducer(task); TaskOutputFilePropertyRegistration registration = new DefaultTaskOutputFilePropertyRegistration(value, OutputFilePropertyType.FILE); registeredFileProperties.add(registration);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 04 09:46:14 UTC 2023 - 10.2K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/PropertySpec.groovy
def owner2 = owner() owner2.modelIdentityDisplayName >> displayName("<owner 2>") given: def property = propertyWithNoValue() property.attachProducer(owner1) when: property.attachProducer(owner2) then: def e = thrown(IllegalStateException)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 11:41:55 UTC 2024 - 87.8K bytes - Viewed (0)