this.loggingServices = loggingServices;
this.requestMetaData = requestMetaData;
}
public void execute(ExecutionListener executionListener) {
GradleLauncherFactory gradleLauncherFactory = createGradleLauncherFactory(loggingServices);
GradleLauncher gradleLauncher = gradleLauncherFactory.newInstance(startParameter, requestMetaData);
BuildResult buildResult = gradleLauncher.run();
Throwable failure = buildResult.getFailure();
if (failure != null) {
executionListener.onFailure(failure);
}