Class UiPathCliConfiguration


  • public final class UiPathCliConfiguration
    extends java.lang.Object
    • Method Detail

      • getInstance

        public static UiPathCliConfiguration getInstance()
                                                  throws com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
      • getConfigurationCount

        public int getConfigurationCount()
      • getDefaultCliVersionKey

        public java.lang.String getDefaultCliVersionKey()
      • getSelectedOrDefaultCliVersionKey

        public java.lang.String getSelectedOrDefaultCliVersionKey​(@Nonnull
                                                                  EnvVars envVars)
      • updateSelectedCliVersionKey

        public void updateSelectedCliVersionKey​(@NonNull
                                                Run<?,​?> run,
                                                @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
      • getCliPath

        public java.util.Optional<FilePath> getCliPath​(@Nonnull
                                                       Launcher launcher,
                                                       @Nonnull
                                                       EnvVars env,
                                                       java.lang.String cliVersionKey)