Class UiPathCliConfiguration
- java.lang.Object
-
- com.uipath.uipathpackage.configuration.UiPathCliConfiguration
-
public final class UiPathCliConfiguration extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UiPathCliConfiguration.Configuration
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LEGACY_CLI_PREFIX
static java.lang.String
SELECTED_CLI_VERSION_KEY
static java.lang.String
WIN_PLATFORM
static java.lang.String
X_PLATFORM
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FilePath
getCliHomeDirectory(Launcher launcher, EnvVars env)
java.util.Optional<FilePath>
getCliPath(Launcher launcher, EnvVars env, java.lang.String cliVersionKey)
FilePath
getCliRootCachedDirectoryPath(Launcher launcher, EnvVars env, java.lang.String cliVersionKey)
FilePath
getCliRootDownloadsDirectoryPath(Launcher launcher, EnvVars env, java.lang.String cliVersionKey)
java.util.Map<java.lang.String,UiPathCliConfiguration.Configuration>
getConfiguration()
int
getConfigurationCount()
java.lang.String
getDefaultCliVersionKey()
static UiPathCliConfiguration
getInstance()
java.lang.String
getSelectedOrDefaultCliVersionKey()
void
updateSelectedCliVersionKey(java.lang.String cliVersionKey)
-
-
-
Field Detail
-
WIN_PLATFORM
public static final java.lang.String WIN_PLATFORM
- See Also:
- Constant Field Values
-
X_PLATFORM
public static final java.lang.String X_PLATFORM
- See Also:
- Constant Field Values
-
LEGACY_CLI_PREFIX
public static final java.lang.String LEGACY_CLI_PREFIX
- See Also:
- Constant Field Values
-
SELECTED_CLI_VERSION_KEY
public static final java.lang.String SELECTED_CLI_VERSION_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static UiPathCliConfiguration getInstance() throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
getConfiguration
public java.util.Map<java.lang.String,UiPathCliConfiguration.Configuration> getConfiguration()
-
getConfigurationCount
public int getConfigurationCount()
-
getDefaultCliVersionKey
public java.lang.String getDefaultCliVersionKey()
-
getSelectedOrDefaultCliVersionKey
public java.lang.String getSelectedOrDefaultCliVersionKey()
-
updateSelectedCliVersionKey
public void updateSelectedCliVersionKey(@Nonnull java.lang.String cliVersionKey) throws AbortException
- Throws:
AbortException
-
getCliHomeDirectory
public FilePath getCliHomeDirectory(@Nonnull Launcher launcher, @Nonnull EnvVars env) throws java.io.IOException, java.lang.InterruptedException
- Throws:
java.io.IOException
java.lang.InterruptedException
-
getCliRootCachedDirectoryPath
public FilePath getCliRootCachedDirectoryPath(@Nonnull Launcher launcher, @Nonnull EnvVars env, java.lang.String cliVersionKey) throws java.io.IOException, java.lang.InterruptedException
- Throws:
java.io.IOException
java.lang.InterruptedException
-
getCliRootDownloadsDirectoryPath
public FilePath getCliRootDownloadsDirectoryPath(@Nonnull Launcher launcher, @Nonnull EnvVars env, java.lang.String cliVersionKey) throws java.io.IOException, java.lang.InterruptedException
- Throws:
java.io.IOException
java.lang.InterruptedException
-
-