Search in sources :

Example 1 with ScannerZipInstaller

use of com.synopsys.integration.blackduck.codelocation.signaturescanner.command.ScannerZipInstaller in project hub-detect by blackducksoftware.

the class ScanBatchRunnerFactory method withUserProvidedUrl.

public ScanBatchRunner withUserProvidedUrl(String userProvidedScannerInstallUrl, ConnectionManager connectionManager) throws DetectUserFriendlyException {
    // we will use the provided url to download/update the scanner
    final IntHttpClient restConnection = connectionManager.createUnauthenticatedRestConnection(userProvidedScannerInstallUrl);
    final CleanupZipExpander cleanupZipExpander = new CleanupZipExpander(slf4jIntLogger);
    final ScannerZipInstaller scannerZipInstaller = new ScannerZipInstaller(slf4jIntLogger, restConnection, cleanupZipExpander, scanPathsUtility, userProvidedScannerInstallUrl, operatingSystemType);
    return ScanBatchRunner.createComplete(slf4jIntLogger, intEnvironmentVariables, scannerZipInstaller, scanPathsUtility, scanCommandRunner);
}
Also used : IntHttpClient(com.synopsys.integration.rest.client.IntHttpClient) ScannerZipInstaller(com.synopsys.integration.blackduck.codelocation.signaturescanner.command.ScannerZipInstaller) CleanupZipExpander(com.synopsys.integration.util.CleanupZipExpander)

Example 2 with ScannerZipInstaller

use of com.synopsys.integration.blackduck.codelocation.signaturescanner.command.ScannerZipInstaller in project hub-detect by blackducksoftware.

the class ScanBatchRunnerFactory method withHubInstall.

public ScanBatchRunner withHubInstall(BlackDuckServerConfig hubServerConfig) {
    // will will use the hub server to download/update the scanner - this is the most likely situation
    ScannerZipInstaller scannerZipInstaller = ScannerZipInstaller.defaultUtility(slf4jIntLogger, hubServerConfig, scanPathsUtility, operatingSystemType);
    ScanBatchRunner scanBatchManager = ScanBatchRunner.createComplete(slf4jIntLogger, intEnvironmentVariables, scannerZipInstaller, scanPathsUtility, scanCommandRunner);
    return scanBatchManager;
}
Also used : ScanBatchRunner(com.synopsys.integration.blackduck.codelocation.signaturescanner.ScanBatchRunner) ScannerZipInstaller(com.synopsys.integration.blackduck.codelocation.signaturescanner.command.ScannerZipInstaller)

Aggregations

ScannerZipInstaller (com.synopsys.integration.blackduck.codelocation.signaturescanner.command.ScannerZipInstaller)2 ScanBatchRunner (com.synopsys.integration.blackduck.codelocation.signaturescanner.ScanBatchRunner)1 IntHttpClient (com.synopsys.integration.rest.client.IntHttpClient)1 CleanupZipExpander (com.synopsys.integration.util.CleanupZipExpander)1