use of org.gradle.tooling.internal.protocol.InternalBuildProgressListener in project gradle by gradle.
the class LazyConsumerActionExecutor method run.
public <T> T run(ConsumerAction<T> action) throws UnsupportedOperationException, IllegalStateException {
try {
ConsumerOperationParameters parameters = action.getParameters();
BuildCancellationToken cancellationToken = parameters.getCancellationToken();
InternalBuildProgressListener buildProgressListener = parameters.getBuildProgressListener();
ConsumerConnection connection = onStartAction(cancellationToken, buildProgressListener);
return action.run(connection);
} finally {
onEndAction();
}
}
Aggregations