Class ScannerZipInstaller
- java.lang.Object
-
- com.synopsys.integration.blackduck.codelocation.signaturescanner.command.ScannerZipInstaller
-
public class ScannerZipInstaller extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBLACK_DUCK_SIGNATURE_SCANNER_INSTALL_DIRECTORYstatic java.lang.StringDEFAULT_SIGNATURE_SCANNER_DOWNLOAD_URL_SUFFIXstatic java.lang.StringMAC_SIGNATURE_SCANNER_DOWNLOAD_URL_SUFFIXstatic java.lang.StringVERSION_FILENAMEstatic java.lang.StringWINDOWS_SIGNATURE_SCANNER_DOWNLOAD_URL_SUFFIX
-
Constructor Summary
Constructors Constructor Description ScannerZipInstaller(com.synopsys.integration.log.IntLogger logger, SignatureScannerClient signatureScannerClient, com.synopsys.integration.util.CleanupZipExpander cleanupZipExpander, ScanPathsUtility scanPathsUtility, KeyStoreHelper keyStoreHelper, com.synopsys.integration.rest.HttpUrl blackDuckServerUrl, com.synopsys.integration.util.OperatingSystemType operatingSystemType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinstallOrUpdateScanner(java.io.File installDirectory)The Black Duck Signature Scanner will be download if it has not previously been downloaded or if it has been updated on the server.
-
-
-
Field Detail
-
DEFAULT_SIGNATURE_SCANNER_DOWNLOAD_URL_SUFFIX
public static final java.lang.String DEFAULT_SIGNATURE_SCANNER_DOWNLOAD_URL_SUFFIX
- See Also:
- Constant Field Values
-
WINDOWS_SIGNATURE_SCANNER_DOWNLOAD_URL_SUFFIX
public static final java.lang.String WINDOWS_SIGNATURE_SCANNER_DOWNLOAD_URL_SUFFIX
- See Also:
- Constant Field Values
-
MAC_SIGNATURE_SCANNER_DOWNLOAD_URL_SUFFIX
public static final java.lang.String MAC_SIGNATURE_SCANNER_DOWNLOAD_URL_SUFFIX
- See Also:
- Constant Field Values
-
BLACK_DUCK_SIGNATURE_SCANNER_INSTALL_DIRECTORY
public static final java.lang.String BLACK_DUCK_SIGNATURE_SCANNER_INSTALL_DIRECTORY
- See Also:
- Constant Field Values
-
VERSION_FILENAME
public static final java.lang.String VERSION_FILENAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ScannerZipInstaller
public ScannerZipInstaller(com.synopsys.integration.log.IntLogger logger, SignatureScannerClient signatureScannerClient, com.synopsys.integration.util.CleanupZipExpander cleanupZipExpander, ScanPathsUtility scanPathsUtility, KeyStoreHelper keyStoreHelper, com.synopsys.integration.rest.HttpUrl blackDuckServerUrl, com.synopsys.integration.util.OperatingSystemType operatingSystemType)
-
-
Method Detail
-
installOrUpdateScanner
public void installOrUpdateScanner(java.io.File installDirectory) throws BlackDuckIntegrationExceptionThe Black Duck Signature Scanner will be download if it has not previously been downloaded or if it has been updated on the server. The absolute path to the install location will be returned if it was downloaded or found successfully, otherwise an Optional.empty will be returned and the log will contain details concerning the failure.- Throws:
BlackDuckIntegrationException
-
-