Class ConfigFileUtils
java.lang.Object
hudson.plugins.android_emulator.util.ConfigFileUtils
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionparseConfigFile(File configFile) Parses the contents of a .properties or .ini file into a map.static voidwriteConfigFile(File configFile, Map<String, String> values) Write the configuration values dependent of the file extension. 
- 
Constructor Details
- 
ConfigFileUtils
public ConfigFileUtils() 
 - 
 - 
Method Details
- 
parseConfigFile
Parses the contents of a .properties or .ini file into a map.- Parameters:
 configFile- The file to read.- Returns:
 - The key-value pairs contained in the file, ignoring any comments or blank lines.
 - Throws:
 IOException- If the file could not be read or an unsupported file extension is used.
 - 
writeConfigFile
Write the configuration values dependent of the file extension. Currently supported are .properties and .ini files.- Parameters:
 configFile- the destination config file.values- configuration key-value-pairs to write.- Throws:
 IOException- If the file could not be written or an unsupported file extension is used.
 
 -