public class Utilities
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CREAMTEC_ROOT |
| Modifier and Type | Method and Description |
|---|---|
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) |
public static final java.lang.String CREAMTEC_ROOT
public static java.lang.String getRootDir()
public static java.lang.String getConfDir()
public static java.lang.String getFullPath(java.lang.String fileName)
fileName - file namepublic static java.lang.String getConfFullPath(java.lang.String fileName)
fileName - file namepublic static void setRootDir(java.lang.String dir)
public static void execProcess(java.lang.String[] cmdParams,
boolean wait)
throws java.lang.Exception
java.lang.Exceptionpublic static void execProcess(java.lang.String cmdLine,
boolean wait)
throws java.lang.Exception
java.lang.Exceptionpublic static void execProcessImpl(java.lang.Process process,
boolean wait)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.Exception wrapThrowable(java.lang.Throwable x)
Copyright © 2000-2012 CreamTec LLC. All Rights Reserved.