Class ToolLocator
- java.lang.Object
-
- jenkins.plugin.android.emulator.tools.ToolLocator
-
public class ToolLocator extends Object
-
-
Constructor Summary
Constructors Constructor Description ToolLocator(Platform platform, String home)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilePath
getADB(Launcher launcher)
Gets the executable path of ADB on the given target system.FilePath
getAVDManager(Launcher launcher)
Gets the executable path of AVDManager on the given target system.FilePath
getEmulator(Launcher launcher)
Gets the executable path of emulator on the given target system.FilePath
getSDKManager(Launcher launcher)
Gets the executable path of SDKManager on the given target system.
-
-
-
Method Detail
-
getSDKManager
public FilePath getSDKManager(Launcher launcher) throws InterruptedException, IOException
Gets the executable path of SDKManager on the given target system.- Parameters:
launcher
- a way to start processes- Returns:
- the sdkmanager executable in the system is exists,
null
otherwise. - Throws:
InterruptedException
- if the step is interruptedIOException
- if something goes wrong
-
getAVDManager
public FilePath getAVDManager(Launcher launcher) throws InterruptedException, IOException
Gets the executable path of AVDManager on the given target system.- Parameters:
launcher
- a way to start processes- Returns:
- the avdmanager executable in the system is exists,
null
otherwise. - Throws:
InterruptedException
- if the step is interruptedIOException
- if something goes wrong
-
getADB
public FilePath getADB(Launcher launcher) throws InterruptedException, IOException
Gets the executable path of ADB on the given target system.- Parameters:
launcher
- a way to start processes- Returns:
- the adb executable in the system is exists,
null
otherwise. - Throws:
InterruptedException
- if the step is interruptedIOException
- if something goes wrong
-
getEmulator
public FilePath getEmulator(Launcher launcher) throws InterruptedException, IOException
Gets the executable path of emulator on the given target system.- Parameters:
launcher
- a way to start processes- Returns:
- the emulator executable in the system is exists,
null
otherwise. - Throws:
InterruptedException
- if the step is interruptedIOException
- if something goes wrong
-
-