org.yestech.lib.runtime
Class OperatingSystem

java.lang.Object
  extended by org.yestech.lib.runtime.OperatingSystem

public final class OperatingSystem
extends java.lang.Object

Version:
$Revision: $
Author:
$Author: $

Method Summary
static java.lang.String findWindowsSystemRoot()
           
static java.lang.String getOsName()
           
static boolean isArch(java.lang.String arch)
          Determines if the OS on which Ant is executing matches the given OS architecture.
static boolean isFamilyAix()
           
static boolean isFamilyDOS()
           
static boolean isFamilyLinux()
           
static boolean isFamilyMac()
           
static boolean isFamilyNetware()
           
static boolean isFamilyOpenVms()
           
static boolean isFamilyOS2()
           
static boolean isFamilyOS400()
           
static boolean isFamilySolaris()
           
static boolean isFamilyTandem()
           
static boolean isFamilyUnix()
           
static boolean isFamilyWin9x()
           
static boolean isFamilyWindows()
           
static boolean isFamilyZOS()
           
static boolean isName(java.lang.String name)
          Determines if the OS on which Ant is executing matches the given OS name.
static boolean isOs(java.lang.String family, java.lang.String name, java.lang.String arch, java.lang.String version)
          Determines if the OS on which Ant is executing matches the given OS family, name, architecture and version
static boolean isVersion(java.lang.String version)
          Determines if the OS on which Ant is executing matches the given OS version.
static java.lang.String platform()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isFamilyDOS

public static boolean isFamilyDOS()

isFamilyMac

public static boolean isFamilyMac()

isFamilyNetware

public static boolean isFamilyNetware()

isFamilyOS2

public static boolean isFamilyOS2()

isFamilyTandem

public static boolean isFamilyTandem()

isFamilyUnix

public static boolean isFamilyUnix()

isFamilySolaris

public static boolean isFamilySolaris()

isFamilyAix

public static boolean isFamilyAix()

isFamilyWindows

public static boolean isFamilyWindows()

isFamilyWin9x

public static boolean isFamilyWin9x()

isFamilyZOS

public static boolean isFamilyZOS()

isFamilyOS400

public static boolean isFamilyOS400()

isFamilyOpenVms

public static boolean isFamilyOpenVms()

isFamilyLinux

public static boolean isFamilyLinux()

isName

public static boolean isName(java.lang.String name)
Determines if the OS on which Ant is executing matches the given OS name.

Parameters:
name - the OS name to check for
Returns:
true if the OS matches

isArch

public static boolean isArch(java.lang.String arch)
Determines if the OS on which Ant is executing matches the given OS architecture.

Parameters:
arch - the OS architecture to check for
Returns:
true if the OS matches

isVersion

public static boolean isVersion(java.lang.String version)
Determines if the OS on which Ant is executing matches the given OS version.

Parameters:
version - the OS version to check for
Returns:
true if the OS matches

isOs

public static boolean isOs(java.lang.String family,
                           java.lang.String name,
                           java.lang.String arch,
                           java.lang.String version)
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:
true if the OS matches

getOsName

public static java.lang.String getOsName()

platform

public static java.lang.String platform()

findWindowsSystemRoot

public static java.lang.String findWindowsSystemRoot()


Copyright © 2009 YES Technology Association. All Rights Reserved.