use of com.synopsys.integration.detectable.detectables.conan.cli.ConanCliExtractor in project synopsys-detect by blackducksoftware.
the class DetectableFactory method conanCliExtractor.
private ConanCliExtractor conanCliExtractor(ConanCliOptions options) {
ConanCommandRunner conanCommandRunner = new ConanCommandRunner(executableRunner, options.getLockfilePath().orElse(null), options.getAdditionalArguments().orElse(null));
ConanInfoLineAnalyzer conanInfoLineAnalyzer = new ConanInfoLineAnalyzer();
ConanCodeLocationGenerator conanCodeLocationGenerator = new ConanCodeLocationGenerator(options.getDependencyTypeFilter(), options.preferLongFormExternalIds());
NodeElementParser nodeElementParser = new NodeElementParser(conanInfoLineAnalyzer);
ConanInfoNodeParser conanInfoNodeParser = new ConanInfoNodeParser(conanInfoLineAnalyzer, nodeElementParser);
ConanInfoParser conanInfoParser = new ConanInfoParser(conanInfoNodeParser, conanCodeLocationGenerator, externalIdFactory);
return new ConanCliExtractor(conanCommandRunner, conanInfoParser, toolVersionLogger);
}
Aggregations