buildFinished

Executes the given action after tasks are run and sends its result to the given result handler.

If the operation fails, build will fail with the appropriate exception. The handler won't be notified in case of failure.

Return

The builder.

Parameters

buildAction

The action to run in the specified build phase.

handler

The handler to supply the result of the given action to.

<T>

The returning type of the action.

Throws

If an action has already been added to this build phase. Multiple actions per phase are not supported yet.