- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for afterTask (0.18 sec)
-
subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskEventsErrorIntegrationTest.groovy
} def "reports task as failed when afterTask closure fails"() { when: buildFile << """ gradle.taskGraph.afterTask { throw new RuntimeException("afterTask failure") } task test """ then: fails('test') failure.assertHasDescription("Execution failed for task ':test'.") .assertHasCause("afterTask failure")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jan 03 03:20:08 UTC 2023 - 3K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/CrossProjectConfigurationReportingTaskExecutionGraph.kt
} @Deprecated("Deprecated in Java") override fun afterTask(closure: Closure<*>) { @Suppress("DEPRECATION") delegate.afterTask(closure) } @Deprecated("Deprecated in Java") override fun afterTask(action: Action<Task>) { @Suppress("DEPRECATION") delegate.afterTask(action) } // endregion override fun resetState() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 9.4K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/buildlifecycle/taskExecutionEvents/groovy/build.gradle
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 370 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/buildlifecycle/taskExecutionEvents/kotlin/build.gradle.kts
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 333 bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/events/BuildExecutionEventsIntegrationTest.groovy
noExceptionThrown() where: path | registrationPoint "gradle.taskGraph.beforeTask" | "TaskExecutionGraph.beforeTask" "gradle.taskGraph.afterTask" | "TaskExecutionGraph.afterTask" } @UnsupportedWithConfigurationCache(because = "tests listener behaviour") def "events passed to any task execution listener are synchronised"() { createDirs("a", "b", "c")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 24 06:54:47 UTC 2023 - 4.7K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/continuous/ChangesDuringBuildContinuousIntegrationTest.groovy
then: assert classloader.loadClass('Thing').getDeclaredFields()*.name == ["CHANGED"] } @UnsupportedWithConfigurationCache(because = "taskGraph.afterTask") def "new build should be triggered when input files to tasks are changed after each task has been executed, but before the build has completed (changed: #changingInput)"() { given:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 6.8K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/api/execution/TaskExecutionGraph.java
* * @param closure The closure to execute when a task has been executed * @deprecated This method is not supported when configuration caching is enabled. */ @Deprecated void afterTask(Closure closure); /** * <p>Adds an action to be called immediately after a task has executed. The task is passed to the action as the * first parameter.</p> *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 20:29:51 UTC 2023 - 6.7K bytes - Viewed (0) -
platforms/enterprise/enterprise-operations/src/main/java/org/gradle/api/internal/tasks/execution/ExecuteTaskBuildOperationType.java
* * This operation can fail _and_ yield a result. * If the operation gets as far as invoking the task executer * (i.e. beforeTask callbacks did not fail), then a result is expected. * If the task execution fails, or if afterTask callbacks fail, an operation failure is expected _in addition_. */ public final class ExecuteTaskBuildOperationType implements BuildOperationType<ExecuteTaskBuildOperationType.Details, ExecuteTaskBuildOperationType.Result> {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Feb 02 10:13:49 UTC 2024 - 5.5K bytes - Viewed (0)