Package rife.bld.extension.tools
Class SystemTools
java.lang.Object
rife.bld.extension.tools.SystemTools
System Tools.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisAix()Determines if the current operating system is AIX.static booleanisCygwin()Determines if the current environment is running in a Cygwin environment.static booleanDetermines if the current operating system is FreeBSD.static booleanisLinux()Determines if the operating system is Linux.static booleanisMacOS()Determines if the current operating system is macOS.static booleanisMingw()Determines if the current environment is running in a Mingw environment.static booleanDetermines if the current operating system is OpenVMS.static booleanDetermines if the current operating system is other than AIX, FreeBSD, Linux, macOS, OpenVMS, Solaris, or Windows.static booleanDetermines if the current operating system is Solaris.static booleanDetermines if the current operating system is Windows.
-
Method Details
-
isAix
public static boolean isAix()Determines if the current operating system is AIX.- Returns:
trueif the operating system is identified as AIX,falseotherwise- Since:
- 1.0
-
isCygwin
public static boolean isCygwin()Determines if the current environment is running in a Cygwin environment.- Returns:
trueif the environment is detected as Cygwin,falseotherwise
-
isFreeBsd
public static boolean isFreeBsd()Determines if the current operating system is FreeBSD.- Returns:
trueif the operating system is FreeBSD,falseotherwise\- Since:
- 1.0
-
isLinux
public static boolean isLinux()Determines if the operating system is Linux.- Returns:
trueif the operating system is Linux,falseotherwise- Since:
- 1.0
-
isMacOS
public static boolean isMacOS()Determines if the current operating system is macOS.- Returns:
trueif the OS is macOS,falseotherwise- Since:
- 1.0
-
isMingw
public static boolean isMingw()Determines if the current environment is running in a Mingw environment.- Returns:
trueif the environment is detected as MinGW/MSYS2,falseotherwise- Since:
- 1.0
-
isOpenVms
public static boolean isOpenVms()Determines if the current operating system is OpenVMS.- Returns:
trueif the operating system is OpenVMS,falseotherwise- Since:
- 1.0
-
isOtherOS
public static boolean isOtherOS()Determines if the current operating system is other than AIX, FreeBSD, Linux, macOS, OpenVMS, Solaris, or Windows.- Returns:
trueif the operating system is other than AIX, FreeBSD, Linux, macOS, OpenVMS, Solaris, or Windows,falseotherwise- Since:
- 1.0
-
isSolaris
public static boolean isSolaris()Determines if the current operating system is Solaris.- Returns:
trueif the operating system is Solaris,falseotherwise- Since:
- 1.0
-
isWindows
public static boolean isWindows()Determines if the current operating system is Windows.- Returns:
trueif the operating system is Windows,falseotherwise- Since:
- 1.0
-