Search in sources :

Example 1 with CalculateScanPathsOperation

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);
    });
}
Also used : DetectExcludedDirectoryFilter(com.synopsys.integration.detect.util.finder.DetectExcludedDirectoryFilter) CalculateScanPathsOperation(com.synopsys.integration.detect.tool.signaturescanner.operation.CalculateScanPathsOperation)

Aggregations

CalculateScanPathsOperation (com.synopsys.integration.detect.tool.signaturescanner.operation.CalculateScanPathsOperation)1 DetectExcludedDirectoryFilter (com.synopsys.integration.detect.util.finder.DetectExcludedDirectoryFilter)1