Package hudson.plugins.android_emulator
Class SdkInstaller
java.lang.Object
hudson.plugins.android_emulator.SdkInstaller
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AndroidSdk
install
(Launcher launcher, BuildListener listener, String androidSdkHome) Downloads and installs the Android SDK on the machine we're executing on.static void
installPlatform
(PrintStream logger, Launcher launcher, AndroidSdk sdk, String platform, String abi, boolean skipSystemImageInstall) Installs the given platform and its dependencies into the given installation, if necessary.static void
optOutOfSdkStatistics
(Launcher launcher, BuildListener listener, String androidSdkHome) Writes the configuration file required to opt out of SDK usage statistics gathering.
-
Constructor Details
-
SdkInstaller
public SdkInstaller()
-
-
Method Details
-
install
public static AndroidSdk install(Launcher launcher, BuildListener listener, String androidSdkHome) throws SdkInstallationException, IOException, InterruptedException Downloads and installs the Android SDK on the machine we're executing on.- Parameters:
launcher
-listener
-androidSdkHome
-- Returns:
- An
AndroidSdk
object for the newly-installed SDK. - Throws:
SdkInstallationException
IOException
InterruptedException
-
installPlatform
public static void installPlatform(PrintStream logger, Launcher launcher, AndroidSdk sdk, String platform, String abi, boolean skipSystemImageInstall) throws IOException, InterruptedException Installs the given platform and its dependencies into the given installation, if necessary.- Parameters:
logger
- Logs things.launcher
- Used to launch tasks on the remote node.sdk
- SDK installation to install components for.platform
- Specifies the platform to be installed.abi
- Specifies the ABI to be installed; may benull
.skipSystemImageInstall
- Specifies that the system image does not need to be installed (useful for named emulator)- Throws:
IOException
InterruptedException
-
optOutOfSdkStatistics
public static void optOutOfSdkStatistics(Launcher launcher, BuildListener listener, String androidSdkHome) Writes the configuration file required to opt out of SDK usage statistics gathering.- Parameters:
launcher
- Used for running tasks on the remote node.listener
- Used to access logger.androidSdkHome
-
-