public class PropertiesUtil extends Object
Constructor and Description |
---|
PropertiesUtil() |
Modifier and Type | Method and Description |
---|---|
static Properties |
loadDefaultProperties()
Loads default properties.
|
static void |
loadDefaultProperties(Properties properties)
Loads the default properties from pig-default.properties and
pig.properties.
|
static void |
loadPropertiesFromFile(Properties properties,
String fileName)
Loads the properties from a given file.
|
public static void loadDefaultProperties(Properties properties)
properties
- Properties object that needs to be loaded with the
properties' values.public static void loadPropertiesFromFile(Properties properties, String fileName)
properties
- Properties object that is to be loaded.fileName
- file name of the file that contains the properties.public static Properties loadDefaultProperties()
Copyright © 2007-2017 The Apache Software Foundation