hudson.plugins.android_emulator
Class Utils

java.lang.Object
  extended by hudson.plugins.android_emulator.Utils

public class Utils
extends java.lang.Object


Constructor Summary
Utils()
           
 
Method Summary
static java.lang.String getAndroidToolsDirectory(java.lang.String androidHome)
          Retrieves the path to the Android SDK tools directory, based on the given SDK root path.
static hudson.util.ArgumentListBuilder getToolCommand(hudson.Launcher launcher, java.lang.String androidHome, hudson.plugins.android_emulator.Tool tool, java.lang.String args)
          Generates a ready-to-use ArgumentListBuilder for one of the Android SDK tools.
static hudson.util.ArgumentListBuilder getToolCommand(java.lang.String androidHome, java.lang.String executable, java.lang.String args)
          Generates a ready-to-use ArgumentListBuilder for one of the Android SDK tools.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

getAndroidToolsDirectory

public static java.lang.String getAndroidToolsDirectory(java.lang.String androidHome)
Retrieves the path to the Android SDK tools directory, based on the given SDK root path.

Parameters:
androidHome - The path to the Android SDK root, may be empty or null.
Returns:
The path to the general Android SDK tools directory.

getToolCommand

public static hudson.util.ArgumentListBuilder getToolCommand(hudson.Launcher launcher,
                                                             java.lang.String androidHome,
                                                             hudson.plugins.android_emulator.Tool tool,
                                                             java.lang.String args)
Generates a ready-to-use ArgumentListBuilder for one of the Android SDK tools.

Parameters:
launcher - The launcher for the remote node.
androidHome - The Android SDK root.
tool - The Android tool to run.
args - Any extra arguments for the command.
Returns:
Arguments including the full path to the SDK and any extra Windows stuff required.

getToolCommand

public static hudson.util.ArgumentListBuilder getToolCommand(java.lang.String androidHome,
                                                             java.lang.String executable,
                                                             java.lang.String args)
Generates a ready-to-use ArgumentListBuilder for one of the Android SDK tools.

Parameters:
androidHome - The Android SDK root.
executable - The executable to run.
args - Any extra arguments for the command.
Returns:
Arguments including the full path to the SDK and any extra Windows stuff required.


Copyright © 2010. All Rights Reserved.