Class Os

java.lang.Object
org.apache.maven.utils.Os

@Deprecated(since="4.0.0") public class Os extends Object
Deprecated.
use ModelBuilder instead
OS support
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final String
    Deprecated.
    OpenJDK is reported to call MacOS X "Darwin"
    private static final String
    Deprecated.
    OS family that can be tested for.
    private static final String
    Deprecated.
    OS family that can be tested for.
    private static final String
    Deprecated.
    OS family that can be tested for.
    static final String
    Deprecated.
    OS family that can be tested for.
    private static final String
    Deprecated.
    OS family that can be tested for.
    private static final String
    Deprecated.
    OS family that can be tested for.
    private static final String
    Deprecated.
    OS family that can be tested for.
    private static final String
    Deprecated.
    OS family that can be tested for.
    private static final String
    Deprecated.
    OS family that can be tested for.
    private static final String
    Deprecated.
    OS family that can be tested for.
    private static final String
    Deprecated.
    OS family that can be tested for.
    private static final String
    Deprecated.
    OS family that can be tested for.
    private static final String
    Deprecated.
    OS family that can be tested for.
    static final boolean
    Deprecated.
    Boolean indicating if the running OS is a Windows system.
    static final String
    Deprecated.
    The OA architecture.
    static final String
    Deprecated.
    OS Family
    static final String
    Deprecated.
    The OS Name.
    static final String
    Deprecated.
    The OS version.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Os()
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static String
    Deprecated.
    Helper method to determine the current OS family.
    static boolean
    isFamily(String family)
    Deprecated.
    Determines if the OS on which Maven is executing matches the given OS family.
    static boolean
    isFamily(String family, String actualOsName)
    Deprecated.
    Determines if the OS on which Maven is executing matches the given OS family derived from the given OS name

    Methods inherited from class java.lang.Object

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

    • OS_NAME

      public static final String OS_NAME
      Deprecated.
      The OS Name.
    • OS_ARCH

      public static final String OS_ARCH
      Deprecated.
      The OA architecture.
    • OS_VERSION

      public static final String OS_VERSION
      Deprecated.
      The OS version.
    • OS_FAMILY

      public static final String OS_FAMILY
      Deprecated.
      OS Family
    • IS_WINDOWS

      public static final boolean IS_WINDOWS
      Deprecated.
      Boolean indicating if the running OS is a Windows system.
    • FAMILY_WINDOWS

      private static final String FAMILY_WINDOWS
      Deprecated.
      OS family that can be tested for. "windows"
      See Also:
    • FAMILY_WIN9X

      private static final String FAMILY_WIN9X
      Deprecated.
      OS family that can be tested for. "win9x"
      See Also:
    • FAMILY_NT

      public static final String FAMILY_NT
      Deprecated.
      OS family that can be tested for. "winnt"
      See Also:
    • FAMILY_OS2

      private static final String FAMILY_OS2
      Deprecated.
      OS family that can be tested for. "os/2"
      See Also:
    • FAMILY_NETWARE

      private static final String FAMILY_NETWARE
      Deprecated.
      OS family that can be tested for. "netware"
      See Also:
    • FAMILY_DOS

      private static final String FAMILY_DOS
      Deprecated.
      OS family that can be tested for. "dos"
      See Also:
    • FAMILY_MAC

      private static final String FAMILY_MAC
      Deprecated.
      OS family that can be tested for. "mac"
      See Also:
    • FAMILY_TANDEM

      private static final String FAMILY_TANDEM
      Deprecated.
      OS family that can be tested for. "tandem"
      See Also:
    • FAMILY_UNIX

      private static final String FAMILY_UNIX
      Deprecated.
      OS family that can be tested for. "unix"
      See Also:
    • FAMILY_OPENVMS

      private static final String FAMILY_OPENVMS
      Deprecated.
      OS family that can be tested for. "openvms"
      See Also:
    • FAMILY_ZOS

      private static final String FAMILY_ZOS
      Deprecated.
      OS family that can be tested for. "z/os"
      See Also:
    • FAMILY_OS390

      private static final String FAMILY_OS390
      Deprecated.
      OS family that can be tested for. "os/390"
      See Also:
    • FAMILY_OS400

      private static final String FAMILY_OS400
      Deprecated.
      OS family that can be tested for. "os/400"
      See Also:
    • DARWIN

      private static final String DARWIN
      Deprecated.
      OpenJDK is reported to call MacOS X "Darwin"
      See Also:
  • Constructor Details

    • Os

      private Os()
      Deprecated.
  • Method Details

    • isFamily

      public static boolean isFamily(String family)
      Deprecated.
      Determines if the OS on which Maven is executing matches the given OS family.
      Parameters:
      family - the family to check for
      Returns:
      true if the OS matches
    • isFamily

      public static boolean isFamily(String family, String actualOsName)
      Deprecated.
      Determines if the OS on which Maven is executing matches the given OS family derived from the given OS name
      Parameters:
      family - the family to check for
      actualOsName - the OS name to check against
      Returns:
      true if the OS matches
    • getOsFamily

      private static String getOsFamily()
      Deprecated.
      Helper method to determine the current OS family.
      Returns:
      name of current OS family.