')             build.withCancellationToken(cancel.token())             collectOutputs(build)             build.run(resultHandler)             sync.waitForAllPendingCalls(resultHandler)             cancel.cancel()             sync.releaseAll()             resultHandler.finished()         }          then:         