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 methods |
static
String
|
buildMinimalLdLibraryPath(File moduleDir, subDirs)
Builds the value of LD_LIBRARY_PATH that uses the shared libs inside module folder.
|
static
String
|
buildPath( tools, String addition)
Builds the value of PATH.
|
Public constructors
EnvironmentVariableUtil
public EnvironmentVariableUtil ()
Public methods
buildMinimalLdLibraryPath
public static String buildMinimalLdLibraryPath (File moduleDir,
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 |
: 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 ( tools,
String addition)
Builds the value of PATH.
Parameters |
tools |
: 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. |