Set<BuildOutcome> sourceOutcomes = null;
if (sourceBuildHasOutcomesModel) {
logger.info(executingSourceBuildMessage);
progressLogger.started(executingSourceBuildMessage);
ProjectOutcomes sourceOutput = executeBuild(sourceBuildExecuter);
progressLogger.progress("inspecting source build outcomes");
GradleBuildOutcomeSetTransformer sourceOutcomeTransformer = createOutcomeSetTransformer(fileStore, SOURCE_FILESTORE_PREFIX);
sourceOutcomes = sourceOutcomeTransformer.transform(sourceOutput);
}
logger.info(executingTargetBuildMessage);
if (sourceBuildHasOutcomesModel) {
progressLogger.progress(executingTargetBuildMessage);
} else {
progressLogger.started(executingTargetBuildMessage);
}
ProjectOutcomes targetOutput = executeBuild(targetBuildExecuter);
Set<BuildOutcome> targetOutcomes;
if (targetBuildHasOutcomesModel) {
progressLogger.progress("inspecting target build outcomes");
GradleBuildOutcomeSetTransformer targetOutcomeTransformer = createOutcomeSetTransformer(fileStore, TARGET_FILESTORE_PREFIX);