Enum Class Tool

java.lang.Object
java.lang.Enum<Tool>
hudson.plugins.android_emulator.sdk.Tool
All Implemented Interfaces:
Serializable, Comparable<Tool>, Constable

public enum Tool extends Enum<Tool>
  • Enum Constant Details

    • ADB

      public static final Tool ADB
    • ANDROID_LEGACY

      public static final Tool ANDROID_LEGACY
    • EMULATOR

      public static final Tool EMULATOR
    • EMULATOR_ARM

      public static final Tool EMULATOR_ARM
    • EMULATOR_MIPS

      public static final Tool EMULATOR_MIPS
    • EMULATOR_X86

      public static final Tool EMULATOR_X86
    • EMULATOR64_ARM

      public static final Tool EMULATOR64_ARM
    • EMULATOR64_MIPS

      public static final Tool EMULATOR64_MIPS
    • EMULATOR64_X86

      public static final Tool EMULATOR64_X86
    • AVDMANAGER

      public static final Tool AVDMANAGER
    • SDKMANAGER

      public static final Tool SDKMANAGER
    • MKSDCARD

      public static final Tool MKSDCARD
  • Field Details

    • EMULATORS

      public static Tool[] EMULATORS
    • executable

      public final String executable
    • windowsExtension

      public final String windowsExtension
    • toolLocator

      public final ToolLocator toolLocator
  • Method Details

    • values

      public static Tool[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Tool valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getExecutable

      public String getExecutable(boolean isUnix)
    • getPathInSdk

      public String getPathInSdk(AndroidSdk androidSdk, boolean isUnix)
    • getRequiredToolsRelativePaths

      public static String[] getRequiredToolsRelativePaths(boolean isUnix)
      Retrieve a list of relative paths to the SDK root directory for all necessary tools needed for a SDK installations using the new structure (tools/bin, emulator dir).
      Parameters:
      isUnix - if false the windows suffix is appended
      Returns:
      a list of relative paths (including the executable name) expected to exist
    • getRequiredCmdLineToolsPaths

      public static String[] getRequiredCmdLineToolsPaths(boolean isUnix)
    • getRequiredToolsLegacyRelativePaths

      public static String[] getRequiredToolsLegacyRelativePaths(boolean isUnix)
      Retrieve a list of relative paths to the SDK root directory for all necessary tools needed for a SDK installations using the legacy structure (tools/android, ...).
      Parameters:
      isUnix - if false the windows suffix is appended
      Returns:
      a list of relative paths (including the executable name) expected to exist
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Tool>