|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.creamtec.core.Utilities
public class Utilities
Contains various helper methods
Field Summary | |
---|---|
static java.lang.String |
CREAMTEC_ROOT
|
Method Summary | |
---|---|
static void |
execProcess(java.lang.String[] cmdParams,
boolean wait)
|
static void |
execProcess(java.lang.String cmdLine,
boolean wait)
|
static void |
execProcessImpl(java.lang.Process process,
boolean wait)
|
static java.lang.String |
getConfDir()
Returns the path to the configuration directory, which is called "conf" and is located under root directory |
static java.lang.String |
getConfFullPath(java.lang.String fileName)
Returns the full path to a given file starting from the configuration directory |
static java.lang.String |
getFullPath(java.lang.String fileName)
Returns the full path to a given file starting from the root directory |
static java.lang.String |
getRootDir()
Returns the home directory specified via com.creamtec.home JVM property |
static void |
setRootDir(java.lang.String dir)
Can be used to provide the directory where the property file is located |
static java.lang.Exception |
wrapThrowable(java.lang.Throwable x)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CREAMTEC_ROOT
Method Detail |
---|
public static java.lang.String getRootDir()
public static java.lang.String getConfDir()
public static java.lang.String getFullPath(java.lang.String fileName)
fileName
- file name
public static java.lang.String getConfFullPath(java.lang.String fileName)
fileName
- file name
public static void setRootDir(java.lang.String dir)
public static void execProcess(java.lang.String[] cmdParams, boolean wait) throws java.lang.Exception
java.lang.Exception
public static void execProcess(java.lang.String cmdLine, boolean wait) throws java.lang.Exception
java.lang.Exception
public static void execProcessImpl(java.lang.Process process, boolean wait) throws java.lang.Exception
java.lang.Exception
public static java.lang.Exception wrapThrowable(java.lang.Throwable x)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |