public class EnvironmentDetector extends Object
Constructor and Description |
---|
EnvironmentDetector() |
Modifier and Type | Method and Description |
---|---|
static void |
executeLauncher(String file)
Execute application launcher
|
static String |
getNullDevice()
Guess the system null device
|
static String |
getOpenOfficeDir()
Guess OpenOffice / LibreOffice directory
|
static String |
getServerHomeDir()
Guess the application server home directory
|
static String |
getServerJndiBase()
Guess JNDI base
|
static String |
getServerLogDir()
Get server log directory
|
static String |
getTempDir()
Guess the system wide temporary directory
|
static String |
getUserHome()
Get user home
|
static boolean |
inServer()
Test if is running in application server
|
static boolean |
isLinux()
Guess if running in Linux
|
static boolean |
isMac()
Guess if running in Mac
|
static boolean |
isServerJBoss()
Detect if running in JBoss
|
static boolean |
isServerTomcat()
Detect if running in Tomcat
|
static boolean |
isWindows()
Guess if running in Windows
|
public static String getServerHomeDir()
public static String getServerLogDir()
public static boolean isServerJBoss()
public static boolean isServerTomcat()
public static String getServerJndiBase()
public static String getTempDir()
public static String getNullDevice()
public static void executeLauncher(String file) throws IOException
IOException
public static boolean isWindows()
public static boolean isLinux()
public static boolean isMac()
public static boolean inServer()
public static String getUserHome()
public static String getOpenOfficeDir()
Copyright © 2015. All Rights Reserved.