use of com.synopsys.integration.detect.tool.detector.inspectors.nuget.AirgapNugetInspectorResolver in project synopsys-detect by blackducksoftware.
the class DetectorFactory method nugetInspectorResolver.
private NugetInspectorResolver nugetInspectorResolver(DetectInfo detectInfo) throws DetectUserFriendlyException {
NugetInspectorResolver resolver;
Optional<File> nugetAirGapPath = airGapInspectorPaths.getNugetInspectorAirGapFile();
NugetInspectorExecutableLocator executableLocator = new NugetInspectorExecutableLocator(detectInfo);
if (nugetAirGapPath.isPresent()) {
resolver = new AirgapNugetInspectorResolver(airGapInspectorPaths, executableLocator, detectInfo);
} else {
ArtifactoryNugetInspectorInstaller installer = new ArtifactoryNugetInspectorInstaller(detectInfo, artifactoryZipInstaller, executableLocator);
resolver = new OnlineNugetInspectorResolver(installer, directoryManager, installedToolManager, installedToolLocator);
}
return resolver;
}
Aggregations