Search in sources :

Example 1 with AirgapNugetInspectorResolver

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;
}
Also used : NugetInspectorExecutableLocator(com.synopsys.integration.detect.tool.detector.inspectors.nuget.NugetInspectorExecutableLocator) ArtifactoryNugetInspectorInstaller(com.synopsys.integration.detect.tool.detector.inspectors.nuget.ArtifactoryNugetInspectorInstaller) AirgapNugetInspectorResolver(com.synopsys.integration.detect.tool.detector.inspectors.nuget.AirgapNugetInspectorResolver) OnlineNugetInspectorResolver(com.synopsys.integration.detect.tool.detector.inspectors.nuget.OnlineNugetInspectorResolver) NugetInspectorResolver(com.synopsys.integration.detectable.detectable.inspector.nuget.NugetInspectorResolver) AirgapNugetInspectorResolver(com.synopsys.integration.detect.tool.detector.inspectors.nuget.AirgapNugetInspectorResolver) OnlineNugetInspectorResolver(com.synopsys.integration.detect.tool.detector.inspectors.nuget.OnlineNugetInspectorResolver) File(java.io.File)

Aggregations

AirgapNugetInspectorResolver (com.synopsys.integration.detect.tool.detector.inspectors.nuget.AirgapNugetInspectorResolver)1 ArtifactoryNugetInspectorInstaller (com.synopsys.integration.detect.tool.detector.inspectors.nuget.ArtifactoryNugetInspectorInstaller)1 NugetInspectorExecutableLocator (com.synopsys.integration.detect.tool.detector.inspectors.nuget.NugetInspectorExecutableLocator)1 OnlineNugetInspectorResolver (com.synopsys.integration.detect.tool.detector.inspectors.nuget.OnlineNugetInspectorResolver)1 NugetInspectorResolver (com.synopsys.integration.detectable.detectable.inspector.nuget.NugetInspectorResolver)1 File (java.io.File)1