use of org.gradle.tooling.internal.consumer.parameters.ConsumerOperationParameters in project gradle by gradle.
the class DefaultModelBuilder method get.
public void get(final ResultHandler<? super T> handler) throws IllegalStateException {
final ConsumerOperationParameters operationParameters = getConsumerOperationParameters();
connection.run(new ConsumerAction<T>() {
public ConsumerOperationParameters getParameters() {
return operationParameters;
}
public T run(ConsumerConnection connection) {
T model = connection.run(modelType, operationParameters);
return model;
}
}, new ResultHandlerAdapter<T>(handler));
}
Aggregations