Object SystemUtilities.Companion
-
- All Implemented Interfaces:
public class SystemUtilities.CompanionWhich operating system SPC is running on, decided once from
os.name.
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanIS_WINDOWSprivate final BooleanIS_MACprivate final BooleanIS_UNIXprivate final BooleanIS_SOLARISpublic final static SystemUtilities.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final StringacquireJavaPathFromSystem()Automatically acquire the path to the systems default Java installation. final BooleangetIS_WINDOWS()Whether SPC runs on Windows, which decides .ps1/.batover.sh/.fishand path separators.final BooleangetIS_MAC()Whether SPC runs on macOS. final BooleangetIS_UNIX()Whether SPC runs on a Unix-like OS — Linux and AIX included, which is the common server case. final BooleangetIS_SOLARIS()Whether SPC runs on Solaris. -
-
Method Detail
-
acquireJavaPathFromSystem
final String acquireJavaPathFromSystem()
Automatically acquire the path to the systems default Java installation.
- Returns:
String. The path to the systems default Java installation.
-
getIS_WINDOWS
final Boolean getIS_WINDOWS()
Whether SPC runs on Windows, which decides
.ps1/.batover.sh/.fishand path separators.
-
getIS_UNIX
final Boolean getIS_UNIX()
Whether SPC runs on a Unix-like OS — Linux and AIX included, which is the common server case.
-
getIS_SOLARIS
final Boolean getIS_SOLARIS()
Whether SPC runs on Solaris. Kept for completeness; no code path treats it specially.
-
-
-
-