use of com.synopsys.integration.detect.workflow.codelocation.BdioCodeLocationResult in project synopsys-detect by blackducksoftware.
the class UniversalStepRunner method generateStandardBdio.
private BdioResult generateStandardBdio(UniversalToolsResult universalToolsResult, NameVersion projectNameVersion) throws OperationException {
logger.debug("Creating BDIO code locations.");
BdioCodeLocationResult codeLocationResult = operationFactory.createBdioCodeLocationsFromDetectCodeLocations(universalToolsResult.getDetectCodeLocations(), projectNameVersion);
DetectCodeLocationNamesResult namesResult = new DetectCodeLocationNamesResult(codeLocationResult.getCodeLocationNames());
logger.debug("Creating BDIO files from code locations.");
if (operationFactory.calculateBdioOptions().isBdio2Enabled()) {
return new BdioResult(operationFactory.createBdio2Files(codeLocationResult, projectNameVersion), namesResult, true);
} else {
return new BdioResult(operationFactory.createBdio1Files(codeLocationResult, projectNameVersion), namesResult, false);
}
}
Aggregations