EventFiringTaskExecuterTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Reacquire project lock after work items in order to invoke TaskExecutionListener

- Add new internal task listener, and replace all internal uses of `TaskExecutionListener`

with the new API.

- Check for `TaskExecutionListener` to determine if project lock is required

    • -1
    • +20
    ./EventFiringTaskExecuterTest.groovy
  1. … 10 more files in changeset.
Reacquire project lock after work items in order to invoke TaskExecutionListener

- Add new internal task listener, and replace all internal uses of `TaskExecutionListener`

with the new API.

- Check for `TaskExecutionListener` to determine if project lock is required

    • -1
    • +21
    ./EventFiringTaskExecuterTest.groovy
  1. … 10 more files in changeset.
Reacquire project lock after work items in order to invoke TaskExecutionListener

- Add new internal task listener, and replace all internal uses of `TaskExecutionListener`

with the new API.

- Check for `TaskExecutionListener` to determine if project lock is required

    • -1
    • +20
    ./EventFiringTaskExecuterTest.groovy
  1. … 10 more files in changeset.
Reacquire project lock after work items in order to invoke TaskExecutionListener

- Add new internal task listener, and replace all internal uses of `TaskExecutionListener`

with the new API.

- Check for `TaskExecutionListener` to determine if project lock is required

    • -1
    • +20
    ./EventFiringTaskExecuterTest.groovy
  1. … 10 more files in changeset.
Code cleanup NO_REUSED_OUTPUTS -> WITHOUT_OUTPUTS

  1. … 16 more files in changeset.
Pass whether results are reused separate from origin metadata

  1. … 32 more files in changeset.
Do not discard task execution failure when a `afterTask` handler fails. Instead, report both failures in the build outcome.

Also wrap `beforeTask` and `afterTask` failures in a contextual "task failed" exception.

    • -6
    • +88
    ./EventFiringTaskExecuterTest.groovy
  1. … 11 more files in changeset.
Move ExecuteTaskBuildOperationType (#7374)

* Move ExecuteTaskBuildOperationType to org.gradle.api.internal.tasks.execution

* Remove redundant import

  1. … 25 more files in changeset.
Fix tests

    • -11
    • +7
    ./EventFiringTaskExecuterTest.groovy
  1. … 2 more files in changeset.
Do not generate multiple progress start and complete events for each task as it executes.

Set the relevant fields on the start event associated with the task execution build operation instead of generating a second progress event to carry this information. Also change the console grouping mechanism to use the event _description_ instead of the event _logging header_ to render the group header. This will allow the logging header concept to be removed in a subsequent change.

  1. … 16 more files in changeset.
Merge branch 'master'

  1. … 5 more files in changeset.
Handle failing listeners correctly

The result of the build operation should be set even if listeners fail

to run.

    • -0
    • +87
    ./EventFiringTaskExecuterTest.groovy
  1. … 6 more files in changeset.