Enum Tool
- java.lang.Object
-
- java.lang.Enum<Tool>
-
- hudson.plugins.android_emulator.sdk.Tool
-
- All Implemented Interfaces:
Serializable
,Comparable<Tool>
public enum Tool extends Enum<Tool>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADB
ANDROID_LEGACY
AVDMANAGER
EMULATOR
EMULATOR_ARM
EMULATOR_MIPS
EMULATOR_X86
EMULATOR64_ARM
EMULATOR64_MIPS
EMULATOR64_X86
MKSDCARD
SDKMANAGER
-
Field Summary
Fields Modifier and Type Field Description static Tool[]
EMULATORS
String
executable
ToolLocator
toolLocator
String
windowsExtension
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getExecutable(boolean isUnix)
String
getPathInSdk(AndroidSdk androidSdk, boolean isUnix)
static String[]
getRequiredCmdLineToolsPaths(boolean isUnix)
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, ...).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).String
toString()
static Tool
valueOf(String name)
Returns the enum constant of this type with the specified name.static Tool[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
EMULATORS
public static Tool[] EMULATORS
-
executable
public final String executable
-
windowsExtension
public final String windowsExtension
-
toolLocator
public final ToolLocator toolLocator
-
-
Method Detail
-
values
public static Tool[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Tool c : Tool.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Tool valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- 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
-
-