|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.di.core.util.EnvUtil
public class EnvUtil
| Constructor Summary | |
|---|---|
EnvUtil()
|
|
| Method Summary | |
|---|---|
static void |
addInternalVariables(Properties prop)
Add a number of internal variables to the Kettle Variables at the root. |
static Locale |
createLocale(String localeCode)
Returns an available java.util.Locale object for the given localeCode. |
static void |
environmentInit()
Adds the kettle properties the the global system properties. |
static String[] |
getEnvironmentVariablesForRuntimeExec()
|
static String |
getSystemProperty(String key)
|
static String |
getSystemProperty(String key,
String def)
This method is written especially for weird JVM's like |
static String |
getSystemPropertyStripQuotes(String key,
String def)
This method is written especially for weird JVM's like IBM's on AIX and OS/400. |
static Properties |
readProperties(String fileName)
Returns the properties from the users kettle home directory. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnvUtil()
| Method Detail |
|---|
public static Properties readProperties(String fileName)
throws KettleException
fileName - the relative name of the properties file in the users kettle
directory.
KettleException
public static void environmentInit()
throws KettleException
KettleException - in case the properties file can't be read.public static void addInternalVariables(Properties prop)
variables - public static final String[] getEnvironmentVariablesForRuntimeExec()
public static final String getSystemPropertyStripQuotes(String key,
String def)
key - The key, the name of the environment variable to returndef - The default value to return in case the key can't be found
public static final String getSystemProperty(String key,
String def)
key - The key, the name of the environment variable to returndef - The default value to return in case the key can't be found
public static final String getSystemProperty(String key)
key - The key, the name of the environment variable to return
public static Locale createLocale(String localeCode)
localeCode -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||