Search in sources :

Example 1 with BdioCodeLocationResult

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);
    }
}
Also used : BdioResult(com.synopsys.integration.detect.workflow.bdio.BdioResult) BdioCodeLocationResult(com.synopsys.integration.detect.workflow.codelocation.BdioCodeLocationResult) DetectCodeLocationNamesResult(com.synopsys.integration.detect.workflow.codelocation.DetectCodeLocationNamesResult)

Aggregations

BdioResult (com.synopsys.integration.detect.workflow.bdio.BdioResult)1 BdioCodeLocationResult (com.synopsys.integration.detect.workflow.codelocation.BdioCodeLocationResult)1 DetectCodeLocationNamesResult (com.synopsys.integration.detect.workflow.codelocation.DetectCodeLocationNamesResult)1