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);
}
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;
}
Aggregations