public class Utils extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static String |
getConfigFilePath(String fileName)
returns the configuration file
|
static String |
getValueFromConsole(String msg,
boolean isPassword)
Retrieve value from command-line
|
static String |
getValueFromXPath(Element element,
String xPath)
retrieve the value for the given xpath from the file
|
static Properties |
loadProperties(String filePath)
read values from property file
|
static void |
setSystemProperties()
Set the system properties
|
static void |
writeToPropertyFile(Properties properties,
String filePath)
writees the properties into a file
|
static void |
writeToSecureConfPropertyFile()
Write to the Secret-conf.properties
|
public static String getValueFromConsole(String msg, boolean isPassword)
public static Properties loadProperties(String filePath)
filePath
- file pathpublic static String getConfigFilePath(String fileName)
fileName
- file namepublic static void writeToPropertyFile(Properties properties, String filePath)
properties
- propertiesfilePath
- filepathpublic static String getValueFromXPath(Element element, String xPath)
element
- elementxPath
- xpathpublic static void writeToSecureConfPropertyFile()
public static void setSystemProperties()
Copyright © 2017 WSO2. All rights reserved.