ConfigurationUtil

public class ConfigurationUtil
extends Object

java.lang.Object
   ↳ com.android.tradefed.config.ConfigurationUtil


Utility functions to handle configuration files.

Summary

Constants

String CLASS_NAME

String CONFIGURATION_NAME

String KEY_NAME

String NAME_NAME

String OPTION_NAME

String VALUE_NAME

Public constructors

ConfigurationUtil()

Public methods

static Set<File> getConfigNamesFileFromDirs(String subPath, List<File> dirs)

Helper to get the test config files from given directories.

static Set<File> getConfigNamesFileFromDirs(String subPath, List<File> dirs, List<String> configNamePatterns)

Search a particular pattern of in the given directories.

static Set<String> getConfigNamesFromDirs(String subPath, List<File> dirs)

Helper to get the test config files from given directories.

Constants

CLASS_NAME

public static final String CLASS_NAME

Constant Value: "class"

CONFIGURATION_NAME

public static final String CONFIGURATION_NAME

Constant Value: "configuration"

KEY_NAME

public static final String KEY_NAME

Constant Value: "key"

NAME_NAME

public static final String NAME_NAME

Constant Value: "name"

OPTION_NAME

public static final String OPTION_NAME

Constant Value: "option"

VALUE_NAME

public static final String VALUE_NAME

Constant Value: "value"

Public constructors

ConfigurationUtil

public ConfigurationUtil ()

Public methods

getConfigNamesFileFromDirs

public static Set<File> getConfigNamesFileFromDirs (String subPath, 
                List<File> dirs)

Helper to get the test config files from given directories.

Parameters
subPath String: The location where to look for configuration. Can be null.

dirs List: A list of File of extra directories to search for test configs

Returns
Set<File> the set of File that were found.

getConfigNamesFileFromDirs

public static Set<File> getConfigNamesFileFromDirs (String subPath, 
                List<File> dirs, 
                List<String> configNamePatterns)

Search a particular pattern of in the given directories.

Parameters
subPath String: The location where to look for configuration. Can be null.

dirs List: A list of File of extra directories to search for test configs

configNamePatterns List: the list of patterns for files to be found.

Returns
Set<File> the set of File that were found.

getConfigNamesFromDirs

public static Set<String> getConfigNamesFromDirs (String subPath, 
                List<File> dirs)

Helper to get the test config files from given directories.

Parameters
subPath String: where to look for configuration. Can be null.

dirs List: a list of File of extra directories to search for test configs

Returns
Set<String>