Class PolarisDownloadUtility
java.lang.Object
com.blackduck.integration.polaris.common.cli.PolarisDownloadUtility
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPolarisDownloadUtility
(com.blackduck.integration.log.IntLogger logger, com.blackduck.integration.util.OperatingSystemType operatingSystemType, com.blackduck.integration.rest.client.IntHttpClient intHttpClient, com.blackduck.integration.util.CleanupZipExpander cleanupZipExpander, com.blackduck.integration.rest.HttpUrl polarisServerUrl, File downloadTargetDirectory) -
Method Summary
Modifier and TypeMethodDescriptionstatic PolarisDownloadUtility
defaultUtility
(com.blackduck.integration.log.IntLogger logger, com.blackduck.integration.rest.HttpUrl polarisServerUrl, com.blackduck.integration.rest.proxy.ProxyInfo proxyInfo, File downloadTargetDirectory) static PolarisDownloadUtility
defaultUtilityNoProxy
(com.blackduck.integration.log.IntLogger logger, com.blackduck.integration.rest.HttpUrl polarisServerUrl, File downloadTargetDirectory) getOrDownloadPolarisCliBin
(File versionFile, String downloadUrlFormat) The Coverity on Polaris CLI will be downloaded if it has not previously been downloaded or if it has been updated on the server.
-
Field Details
-
DEFAULT_POLARIS_TIMEOUT
-
LINUX_DOWNLOAD_URL_FORMAT
- See Also:
-
WINDOWS_DOWNLOAD_URL_FORMAT
- See Also:
-
MAC_DOWNLOAD_URL_FORMAT
- See Also:
-
MAC_ARM_DOWNLOAD_URL_FORMAT
- See Also:
-
POLARIS_CLI_INSTALL_DIRECTORY
- See Also:
-
VERSION_FILENAME
- See Also:
-
-
Constructor Details
-
PolarisDownloadUtility
public PolarisDownloadUtility(com.blackduck.integration.log.IntLogger logger, com.blackduck.integration.util.OperatingSystemType operatingSystemType, com.blackduck.integration.rest.client.IntHttpClient intHttpClient, com.blackduck.integration.util.CleanupZipExpander cleanupZipExpander, com.blackduck.integration.rest.HttpUrl polarisServerUrl, File downloadTargetDirectory)
-
-
Method Details
-
defaultUtility
public static PolarisDownloadUtility defaultUtility(com.blackduck.integration.log.IntLogger logger, com.blackduck.integration.rest.HttpUrl polarisServerUrl, com.blackduck.integration.rest.proxy.ProxyInfo proxyInfo, File downloadTargetDirectory) -
defaultUtilityNoProxy
public static PolarisDownloadUtility defaultUtilityNoProxy(com.blackduck.integration.log.IntLogger logger, com.blackduck.integration.rest.HttpUrl polarisServerUrl, File downloadTargetDirectory) -
getOrDownloadPolarisCliExecutable
public Optional<String> getOrDownloadPolarisCliExecutable() throws com.blackduck.integration.exception.IntegrationExceptionThe Coverity on Polaris CLI will be downloaded if it has not previously been downloaded or if it has been updated on the server. The absolute path to the swip_cli executable 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:
com.blackduck.integration.exception.IntegrationException
-
getOrDownloadPolarisCliBin
public Optional<File> getOrDownloadPolarisCliBin() throws com.blackduck.integration.exception.IntegrationException- Throws:
com.blackduck.integration.exception.IntegrationException
-
getOrDownloadPolarisCliBin
-
getOrDownloadPolarisCliHome
public Optional<String> getOrDownloadPolarisCliHome() throws com.blackduck.integration.exception.IntegrationException- Throws:
com.blackduck.integration.exception.IntegrationException
-
getOrCreateVersionFile
- Throws:
IOException
-
getDownloadUrlFormat
public String getDownloadUrlFormat() throws com.blackduck.integration.exception.IntegrationException- Throws:
com.blackduck.integration.exception.IntegrationException
-