use of com.synopsys.integration.detect.tool.signaturescanner.operation.CalculateScanPathsOperation in project synopsys-detect by blackducksoftware.
the class OperationFactory method createScanPaths.
public List<SignatureScanPath> createScanPaths(NameVersion projectNameVersion, DockerTargetData dockerTargetData) throws OperationException {
return auditLog.namedInternal("Calculate Signature Scan Paths", () -> {
List<String> exclusions = detectConfigurationFactory.collectSignatureScannerDirectoryExclusions();
DetectExcludedDirectoryFilter detectExcludedDirectoryFilter = new DetectExcludedDirectoryFilter(exclusions);
return new CalculateScanPathsOperation(detectConfigurationFactory.createBlackDuckSignatureScannerOptions(), directoryManager, fileFinder, detectExcludedDirectoryFilter::isExcluded).determinePathsAndExclusions(projectNameVersion, detectConfigurationFactory.createBlackDuckSignatureScannerOptions().getMaxDepth(), dockerTargetData);
});
}
Aggregations