Object SystemUtilities.Companion

  • All Implemented Interfaces:

    
    public class SystemUtilities.Companion
    
                        

    Which operating system SPC is running on, decided once from os.name.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String acquireJavaPathFromSystem() Automatically acquire the path to the systems default Java installation.
      final Boolean getIS_WINDOWS() Whether SPC runs on Windows, which decides .ps1/.bat over .sh/.fish and path separators.
      final Boolean getIS_MAC() Whether SPC runs on macOS.
      final Boolean getIS_UNIX() Whether SPC runs on a Unix-like OS — Linux and AIX included, which is the common server case.
      final Boolean getIS_SOLARIS() Whether SPC runs on Solaris.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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/.bat over .sh/.fish and 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.