EnvironmentVariableUtil

public class EnvironmentVariableUtil
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.EnvironmentVariableUtil


A collection of helper methods to prepare environment variables.

Summary

Public constructors

EnvironmentVariableUtil()

Public methods

static String buildMinimalLdLibraryPath(File moduleDir, List<String> subDirs)

Builds the value of LD_LIBRARY_PATH that uses the shared libs inside module folder.

static String buildPath(Set<String> tools, String addition)

Builds the value of PATH.

Public constructors

EnvironmentVariableUtil

public EnvironmentVariableUtil ()

Public methods

buildMinimalLdLibraryPath

public static String buildMinimalLdLibraryPath (File moduleDir, 
                List<String> subDirs)

Builds the value of LD_LIBRARY_PATH that uses the shared libs inside module folder.

Parameters
moduleDir File: The root of module folder.

subDirs List: The sub-directories that are relative to the root of module folder.

Returns
String The value of LD_LIBRARY_PATH.

buildPath

public static String buildPath (Set<String> tools, 
                String addition)

Builds the value of PATH.

Parameters
tools Set: A list of tools that will be added to PATH.

addition String: The String that will be appended to the end of the return.

Returns
String The value of PATH.