Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for ObtainedValue (0.26 sec)

  1. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/fingerprint/ConfigurationCacheFingerprint.kt

        data class InputFileSystemEntry(
            val file: File,
            val fileType: FileType
        ) : ConfigurationCacheFingerprint()
    
        data class ValueSource(
            val obtainedValue: ObtainedValue
        ) : ConfigurationCacheFingerprint()
    
        data class UndeclaredSystemProperty(
            val key: String,
            val value: Any?
        ) : ConfigurationCacheFingerprint()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/fingerprint/ConfigurationCacheFingerprintChecker.kt

            .count()
    
        private
        fun checkFingerprintValueIsUpToDate(obtainedValue: ObtainedValue): InvalidationReason? {
            return obtainedValue.value.map { fingerprintedValue ->
                val valueSource = host.instantiateValueSourceOf(obtainedValue)
                if (fingerprintedValue != valueSource.obtain()) {
                    buildLogicInputHasChanged(valueSource)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/ValueSourceProviderFactory.java

         */
        @EventScope(Scope.Build.class)
        interface ComputationListener {
            void beforeValueObtained();
    
            void afterValueObtained();
        }
    
        @EventScope(Scope.Build.class)
        interface ValueListener {
            <T, P extends ValueSourceParameters> void valueObtained(
                ObtainedValue<T, P> obtainedValue,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:26:25 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/fingerprint/ConfigurationCacheFingerprintWriter.kt

            obtainedValue: ValueSourceProviderFactory.ValueListener.ObtainedValue<T, P>,
            source: org.gradle.api.provider.ValueSource<T, P>
        ) {
            obtainedValue.value.failure.ifPresent { exception ->
                host.reportProblem(exception) {
                    text("failed to compute value with custom source ")
                    reference(obtainedValue.valueSourceType)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 32.8K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/DefaultValueSourceProviderFactoryTest.groovy

    import org.gradle.process.ExecOperations
    import org.gradle.process.ExecResult
    
    import javax.inject.Inject
    
    import static org.gradle.api.internal.provider.ValueSourceProviderFactory.ValueListener.ObtainedValue
    
    class DefaultValueSourceProviderFactoryTest extends ValueSourceBasedSpec {
    
        def "parameters are configured eagerly"() {
    
            given:
            def configured = false
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:26:25 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/fingerprint/ConfigurationCacheFingerprintController.kt

            override fun instantiateValueSourceOf(obtainedValue: ObtainedValue) =
                (host.valueSourceProviderFactory as DefaultValueSourceProviderFactory).instantiateValueSource(
                    obtainedValue.valueSourceType,
                    obtainedValue.valueSourceParametersType,
                    obtainedValue.valueSourceParameters
                )
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/DefaultValueSourceProviderFactory.java

                if (obtainedFrom != null) {
                    // We are the first thread to see the obtained value. Let's tell the interested parties about it.
                    valueBroadcaster.getSource().valueObtained(obtainedValue(obtained), obtainedFrom);
                }
                return obtained;
            }
    
            @Nonnull
            private ValueSource<T, P> source() {
                return instantiateValueSource(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:26:25 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/fingerprint/ConfigurationCacheFingerprintCheckerTest.kt

            }
    
            val obtainedValue = obtainedValueMock()
    
            // expect:
            assertThat(
                checkFingerprintGiven(
                    mock {
                        on { instantiateValueSourceOf(obtainedValue) } doReturn describableValueSource
                    },
                    ConfigurationCacheFingerprint.ValueSource(obtainedValue)
                ),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 18.5K bytes
    - Viewed (0)
Back to top