use of com.synopsys.integration.blackduck.codelocation.signaturescanner.ScanBatch in project hub-detect by blackducksoftware.
the class BlackDuckSignatureScanner method scanPaths.
private ScanBatchOutput scanPaths(final NameVersion projectNameVersion, File installDirectory, File dockerTarFile) throws IntegrationException, InterruptedException, IOException {
List<SignatureScanPath> signatureScanPaths = determinePathsAndExclusions(projectNameVersion, signatureScannerOptions.getMaxDepth(), dockerTarFile);
final ScanBatch scanJob = createScanBatch(projectNameVersion, installDirectory, signatureScanPaths, dockerTarFile);
List<ScanCommandOutput> scanCommandOutputs = new ArrayList<>();
final ScanBatchOutput scanJobOutput = scanJobManager.executeScans(scanJob);
if (scanJobOutput.getOutputs() != null) {
for (ScanCommandOutput scanCommandOutput : scanJobOutput.getOutputs()) {
scanCommandOutputs.add(scanCommandOutput);
}
}
reportResults(signatureScanPaths, scanCommandOutputs);
return scanJobOutput;
}
Aggregations