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
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    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_NT

      public static final String FAMILY_NT
      Deprecated.
      OS family that can be tested for. "winnt"
      See Also:
  • 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