Class Os

java.lang.Object
org.apache.commons.vfs2.util.Os

@Deprecated public final class Os extends Object
Deprecated.
Use Apache Commons Lang's SystemUtils. Remove in 3.0.
Class to help to determine the OS.
  • Field Details

  • Method Details

    • getFamily

      public static OsFamily getFamily(String name)
      Deprecated.
      Locates an OsFamily by name (case-insensitive).
      Parameters:
      name - The family name to lookup.
      Returns:
      the OS family, or null if not found.
    • isArch

      public static boolean isArch(String arch)
      Deprecated.
      Determines if the OS on which Ant is executing matches the given OS architecture.
      Parameters:
      arch - The architecture to check.
      Returns:
      true if the architecture matches.
    • isFamily

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

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

      public static boolean isName(String name)
      Deprecated.
      Determines if the OS on which Ant is executing matches the given OS name.
      Parameters:
      name - Description of Parameter
      Returns:
      The Name value
      Since:
      1.7
    • isOs

      public static boolean isOs(OsFamily family, String name, String arch, String version)
      Deprecated.
      Determines if the OS on which Ant is executing matches the given OS family, name, architecture and version.
      Parameters:
      family - The OS family
      name - The OS name
      arch - The OS architecture
      version - The OS version
      Returns:
      The Os value
    • isOs

      public static boolean isOs(String family, String name, String arch, String version)
      Deprecated.
      Determines if the OS on which Ant is executing matches the given OS family, name, architecture and version.
      Parameters:
      family - The OS family
      name - The OS name
      arch - The OS architecture
      version - The OS version
      Returns:
      The Os value
    • isVersion

      public static boolean isVersion(String version)
      Deprecated.
      Determines if the OS on which Ant is executing matches the given OS version.
      Parameters:
      version - The version to check.
      Returns:
      true if the version matches.