Search in sources :

Example 1 with ProjectInspectorExecutableLocator

use of com.synopsys.integration.detect.tool.detector.inspectors.projectinspector.ProjectInspectorExecutableLocator in project synopsys-detect by blackducksoftware.

the class DetectorFactory method projectInspectorResolver.

private ProjectInspectorResolver projectInspectorResolver(DetectInfo detectInfo) {
    ProjectInspectorExecutableLocator projectInspectorExecutableLocator = new ProjectInspectorExecutableLocator(detectInfo);
    Optional<File> projectInspectorAirgapPath = airGapInspectorPaths.getProjectInspectorAirGapFile();
    if (projectInspectorAirgapPath.isPresent()) {
        return new AirgapProjectInspectorResolver(airGapInspectorPaths, projectInspectorExecutableLocator, detectInfo);
    } else {
        ArtifactoryProjectInspectorInstaller artifactoryProjectInspectorInstaller = new ArtifactoryProjectInspectorInstaller(detectInfo, artifactoryZipInstaller, projectInspectorExecutableLocator);
        return new OnlineProjectInspectorResolver(artifactoryProjectInspectorInstaller, directoryManager, installedToolManager, installedToolLocator);
    }
}
Also used : AirgapProjectInspectorResolver(com.synopsys.integration.detect.tool.detector.inspectors.projectinspector.AirgapProjectInspectorResolver) ArtifactoryProjectInspectorInstaller(com.synopsys.integration.detect.tool.detector.inspectors.projectinspector.ArtifactoryProjectInspectorInstaller) File(java.io.File) ProjectInspectorExecutableLocator(com.synopsys.integration.detect.tool.detector.inspectors.projectinspector.ProjectInspectorExecutableLocator) OnlineProjectInspectorResolver(com.synopsys.integration.detect.tool.detector.inspectors.projectinspector.OnlineProjectInspectorResolver)

Example 2 with ProjectInspectorExecutableLocator

use of com.synopsys.integration.detect.tool.detector.inspectors.projectinspector.ProjectInspectorExecutableLocator in project synopsys-detect by blackducksoftware.

the class DetectBootFactory method createAirGapCreator.

public AirGapCreator createAirGapCreator(ConnectionDetails connectionDetails, DetectExecutableOptions detectExecutableOptions, Configuration freemarkerConfiguration, InstalledToolManager installedToolManager, InstalledToolLocator installedToolLocator) {
    ConnectionFactory connectionFactory = new ConnectionFactory(connectionDetails);
    ArtifactResolver artifactResolver = new ArtifactResolver(connectionFactory, gson);
    ArtifactoryZipInstaller artifactoryZipInstaller = new ArtifactoryZipInstaller(artifactResolver);
    DirectoryExecutableFinder directoryExecutableFinder = DirectoryExecutableFinder.forCurrentOperatingSystem(fileFinder);
    SystemPathExecutableFinder systemPathExecutableFinder = new SystemPathExecutableFinder(directoryExecutableFinder);
    DetectExecutableResolver detectExecutableResolver = new DetectExecutableResolver(directoryExecutableFinder, systemPathExecutableFinder, detectExecutableOptions);
    DetectExecutableRunner runner = DetectExecutableRunner.newDebug(eventSystem);
    GradleAirGapCreator gradleAirGapCreator = new GradleAirGapCreator(detectExecutableResolver, runner, freemarkerConfiguration);
    NugetInspectorAirGapCreator nugetAirGapCreator = new NugetInspectorAirGapCreator(new ArtifactoryNugetInspectorInstaller(detectInfo, artifactoryZipInstaller, new NugetInspectorExecutableLocator(detectInfo)));
    ProjectInspectorExecutableLocator projectInspectorExecutableLocator = new ProjectInspectorExecutableLocator(detectInfo);
    ArtifactoryProjectInspectorInstaller projectInspectorInstaller = new ArtifactoryProjectInspectorInstaller(detectInfo, artifactoryZipInstaller, projectInspectorExecutableLocator);
    ProjectInspectorAirGapCreator projectInspectorAirGapCreator = new ProjectInspectorAirGapCreator(projectInspectorInstaller);
    DockerAirGapCreator dockerAirGapCreator = new DockerAirGapCreator(new DockerInspectorInstaller(artifactResolver));
    DetectFontAirGapCreator detectFontAirGapCreator = new DetectFontAirGapCreator(new DetectFontInstaller(artifactResolver, installedToolManager, installedToolLocator));
    return new AirGapCreator(new AirGapPathFinder(), eventSystem, gradleAirGapCreator, nugetAirGapCreator, dockerAirGapCreator, detectFontAirGapCreator, projectInspectorAirGapCreator);
}
Also used : ArtifactoryNugetInspectorInstaller(com.synopsys.integration.detect.tool.detector.inspectors.nuget.ArtifactoryNugetInspectorInstaller) NugetInspectorExecutableLocator(com.synopsys.integration.detect.tool.detector.inspectors.nuget.NugetInspectorExecutableLocator) DirectoryExecutableFinder(com.synopsys.integration.detect.tool.detector.executable.DirectoryExecutableFinder) ArtifactoryZipInstaller(com.synopsys.integration.detect.tool.detector.inspectors.ArtifactoryZipInstaller) GradleAirGapCreator(com.synopsys.integration.detect.workflow.airgap.GradleAirGapCreator) ArtifactoryProjectInspectorInstaller(com.synopsys.integration.detect.tool.detector.inspectors.projectinspector.ArtifactoryProjectInspectorInstaller) NugetInspectorAirGapCreator(com.synopsys.integration.detect.workflow.airgap.NugetInspectorAirGapCreator) DockerInspectorInstaller(com.synopsys.integration.detect.tool.detector.inspectors.DockerInspectorInstaller) ArtifactResolver(com.synopsys.integration.detect.workflow.ArtifactResolver) SystemPathExecutableFinder(com.synopsys.integration.detect.tool.detector.executable.SystemPathExecutableFinder) ProjectInspectorExecutableLocator(com.synopsys.integration.detect.tool.detector.inspectors.projectinspector.ProjectInspectorExecutableLocator) DockerAirGapCreator(com.synopsys.integration.detect.workflow.airgap.DockerAirGapCreator) DetectFontAirGapCreator(com.synopsys.integration.detect.workflow.airgap.DetectFontAirGapCreator) DockerAirGapCreator(com.synopsys.integration.detect.workflow.airgap.DockerAirGapCreator) AirGapCreator(com.synopsys.integration.detect.workflow.airgap.AirGapCreator) NugetInspectorAirGapCreator(com.synopsys.integration.detect.workflow.airgap.NugetInspectorAirGapCreator) GradleAirGapCreator(com.synopsys.integration.detect.workflow.airgap.GradleAirGapCreator) ProjectInspectorAirGapCreator(com.synopsys.integration.detect.workflow.airgap.ProjectInspectorAirGapCreator) DetectFontAirGapCreator(com.synopsys.integration.detect.workflow.airgap.DetectFontAirGapCreator) ConnectionFactory(com.synopsys.integration.detect.configuration.connection.ConnectionFactory) DetectFontInstaller(com.synopsys.integration.detect.workflow.blackduck.font.DetectFontInstaller) DetectExecutableResolver(com.synopsys.integration.detect.tool.detector.executable.DetectExecutableResolver) AirGapPathFinder(com.synopsys.integration.detect.workflow.airgap.AirGapPathFinder) ProjectInspectorAirGapCreator(com.synopsys.integration.detect.workflow.airgap.ProjectInspectorAirGapCreator) DetectExecutableRunner(com.synopsys.integration.detect.tool.detector.executable.DetectExecutableRunner)

Aggregations

ArtifactoryProjectInspectorInstaller (com.synopsys.integration.detect.tool.detector.inspectors.projectinspector.ArtifactoryProjectInspectorInstaller)2 ProjectInspectorExecutableLocator (com.synopsys.integration.detect.tool.detector.inspectors.projectinspector.ProjectInspectorExecutableLocator)2 ConnectionFactory (com.synopsys.integration.detect.configuration.connection.ConnectionFactory)1 DetectExecutableResolver (com.synopsys.integration.detect.tool.detector.executable.DetectExecutableResolver)1 DetectExecutableRunner (com.synopsys.integration.detect.tool.detector.executable.DetectExecutableRunner)1 DirectoryExecutableFinder (com.synopsys.integration.detect.tool.detector.executable.DirectoryExecutableFinder)1 SystemPathExecutableFinder (com.synopsys.integration.detect.tool.detector.executable.SystemPathExecutableFinder)1 ArtifactoryZipInstaller (com.synopsys.integration.detect.tool.detector.inspectors.ArtifactoryZipInstaller)1 DockerInspectorInstaller (com.synopsys.integration.detect.tool.detector.inspectors.DockerInspectorInstaller)1 ArtifactoryNugetInspectorInstaller (com.synopsys.integration.detect.tool.detector.inspectors.nuget.ArtifactoryNugetInspectorInstaller)1 NugetInspectorExecutableLocator (com.synopsys.integration.detect.tool.detector.inspectors.nuget.NugetInspectorExecutableLocator)1 AirgapProjectInspectorResolver (com.synopsys.integration.detect.tool.detector.inspectors.projectinspector.AirgapProjectInspectorResolver)1 OnlineProjectInspectorResolver (com.synopsys.integration.detect.tool.detector.inspectors.projectinspector.OnlineProjectInspectorResolver)1 ArtifactResolver (com.synopsys.integration.detect.workflow.ArtifactResolver)1 AirGapCreator (com.synopsys.integration.detect.workflow.airgap.AirGapCreator)1 AirGapPathFinder (com.synopsys.integration.detect.workflow.airgap.AirGapPathFinder)1 DetectFontAirGapCreator (com.synopsys.integration.detect.workflow.airgap.DetectFontAirGapCreator)1 DockerAirGapCreator (com.synopsys.integration.detect.workflow.airgap.DockerAirGapCreator)1 GradleAirGapCreator (com.synopsys.integration.detect.workflow.airgap.GradleAirGapCreator)1 NugetInspectorAirGapCreator (com.synopsys.integration.detect.workflow.airgap.NugetInspectorAirGapCreator)1