Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for BuildWorkResult (0.3 sec)

  1. subprojects/core-api/src/main/java/org/gradle/api/flow/BuildWorkResult.java

    import java.util.Optional;
    
    /**
     * Summary result of the execution of the work scheduled for the current build.
     *
     * @see FlowProviders#getBuildWorkResult()
     * @since 8.1
     */
    @Incubating
    public interface BuildWorkResult {
    
        /**
         * A summary of the configuration time and execution time failure(s) that occurred as Gradle tried to execute the
         * scheduled work.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 06 22:42:58 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. platforms/core-configuration/flow-services/src/main/kotlin/org/gradle/internal/flow/services/DefaultFlowProviders.kt

        private
        val buildWorkResult by lazy {
            BuildWorkResultProvider()
        }
    
        override fun getBuildWorkResult(): Provider<BuildWorkResult> =
            buildWorkResult
    }
    
    
    class BuildWorkResultProvider : AbstractMinimalProvider<BuildWorkResult>() {
    
        private
        var result: BuildWorkResult? = null
    
        fun set(result: BuildWorkResult) {
            require(this.result == null)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 15:01:34 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. platforms/core-configuration/flow-services/src/integTest/groovy/org/gradle/internal/flow/services/FlowScopeIntegrationTest.groovy

                    parameters.workResult = flowProviders.buildWorkResult
                }.get()
    
            '''
    
            expect:
            fails()
    
            and:
            // TODO(mlopatkin) The error message can be improved.
            failureHasCause(~/Could not isolate value ResultSource(.*) of type ResultSource.Params/)
        }
    
        def "task cannot depend on buildWorkResult, fails with clear message and problem is reported"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 15:01:34 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheFlowScopeIntegrationTest.groovy

                    }
    
                    void apply($targetType target) {
                        flowScope.always(SetLavaLampColor) {
                            parameters.color = flowProviders.buildWorkResult.map {
                                it.failure.present ? 'red' : 'green'
                            }
                        }
                    }
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  5. subprojects/core-api/src/main/java/org/gradle/api/flow/FlowProviders.java

         *                 )
         *             )
         *         );
         *     }
         * }
         * </pre>
         *
         * @see FlowAction
         * @see FlowScope
         */
        Provider<BuildWorkResult> getBuildWorkResult();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. platforms/core-configuration/flow-services/src/main/kotlin/org/gradle/internal/flow/services/BuildFlowScope.kt

            state.add(registeredFlowAction)
            return DefaultFlowScopeRegistration()
        }
    
        private
        fun setBuildWorkResult(failure: Throwable?) {
            flowProviders.buildWorkResult.uncheckedCast<BuildWorkResultProvider>().apply {
                set { Optional.ofNullable(failure) }
            }
        }
    
        private
        fun schedulePendingActions() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:59:39 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  7. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/ChangesDuringTheBuildFileSystemWatchingIntegrationTest.groovy

                        def projectDir = project.rootDir
                        def vfsService = project.gradle.services.get(VirtualFileSystem)
                        def projectDirAsResultOfBuild = flowProviders.buildWorkResult.map { projectDir }
                        flowScope.always(
                            VfsAction.class,
                            spec -> {
                                spec.getParameters().getRootDir().set(projectDirAsResultOfBuild)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/docs/userguide/authoring-builds/other/dataflow_actions.adoc

    You can obtain these providers from the link:{javadocPath}/org/gradle/api/flow/FlowProviders.html[FlowProviders] class.
    
    [source,groovy]
    ----
    flowProviders.buildWorkResult.map {
        [
            buildInvocationId: scopeIdsService.buildInvocationId,
            workspaceId: scopeIdsService.workspaceId,
            userId: scopeIdsService.userId
        ]
    }
    ----
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 18:03:10 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  9. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/AbstractConsoleBuildPhaseFunctionalTest.groovy

                def flowProviders = gradle.services.get(FlowProviders)
                flowScope.always(BuildFinishCall) {
                    parameters.buildSuccess = flowProviders.buildWorkResult.map { result -> "Finished" }
                }
            """
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 07:25:15 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  10. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/ProviderCodecs.kt

                    text(" can only be used as input to flow actions.")
                }
            }
        }
    
        override suspend fun ReadContext.decode(): BuildWorkResultProvider {
            return flowProviders.buildWorkResult.uncheckedCast()
        }
    }
    
    
    object RegisteredFlowActionCodec : Codec<RegisteredFlowAction> {
    
        override suspend fun WriteContext.encode(value: RegisteredFlowAction) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 17.2K bytes
    - Viewed (0)
Back to top