Class SystemTools

java.lang.Object
rife.bld.extension.tools.SystemTools

public final class SystemTools extends Object
System Tools.
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    Determines if the current operating system is AIX.
    static boolean
    Determines if the current environment is running in a Cygwin environment.
    static boolean
    Determines if the current operating system is FreeBSD.
    static boolean
    Determines if the current operating system is Linux.
    static boolean
    Determines if the current operating system is macOS.
    static boolean
    Determines if the current environment is running in a MinGW environment.
    static boolean
    Determines if the current operating system is OpenVMS.
    static boolean
    Determines if the current operating system is other than AIX, FreeBSD, Linux, macOS, OpenVMS, Solaris, or Windows.
    static boolean
    Determines if the current operating system is Solaris.
    static boolean
    Determines if the current operating system is Windows.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • isAix

      public static boolean isAix()
      Determines if the current operating system is AIX.
      Returns:
      true if the operating system is AIX, false otherwise
      Since:
      1.0
    • isCygwin

      public static boolean isCygwin()
      Determines if the current environment is running in a Cygwin environment.

      This method delegates to isCygwin(String, Function) using the current OS name and System.getenv(java.lang.String) as the environment provider. For testing, use isCygwin(String, Function) directly with a custom environment provider.

      Returns:
      true if the environment is detected as Cygwin, false otherwise
      Since:
      1.0
    • isFreeBsd

      public static boolean isFreeBsd()
      Determines if the current operating system is FreeBSD.
      Returns:
      true if the operating system is FreeBSD, false otherwise
      Since:
      1.0
    • isLinux

      public static boolean isLinux()
      Determines if the current operating system is Linux.
      Returns:
      true if the operating system is Linux, false otherwise
      Since:
      1.0
    • isMacOS

      public static boolean isMacOS()
      Determines if the current operating system is macOS.
      Returns:
      true if the OS is macOS, false otherwise
      Since:
      1.0
    • isMingw

      public static boolean isMingw()
      Determines if the current environment is running in a MinGW environment.

      This method delegates to isMingw(String, Function) using the current OS name and System.getenv(java.lang.String) as the environment provider. For testing, use isMingw(String, Function) directly with a custom environment provider.

      Returns:
      true if the environment is detected as MinGW/MSYS2, false otherwise
      Since:
      1.0
    • isOpenVms

      public static boolean isOpenVms()
      Determines if the current operating system is OpenVMS.
      Returns:
      true if the operating system is OpenVMS, false otherwise
      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:
      true if the operating system is none of the above, false otherwise
      Since:
      1.0
    • isSolaris

      public static boolean isSolaris()
      Determines if the current operating system is Solaris.
      Returns:
      true if the operating system is Solaris, false otherwise
      Since:
      1.0
    • isWindows

      public static boolean isWindows()
      Determines if the current operating system is Windows.
      Returns:
      true if the operating system is Windows, false otherwise
      Since:
      1.0