[LANG-759] Add Support in SystemUtils for Windows Server 2003 and Windows Server 2008.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1180197 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2011-10-07 20:12:48 +00:00
parent 5244e89e73
commit 16c3a32975
1 changed files with 24 additions and 0 deletions

View File

@ -1110,6 +1110,30 @@ public class SystemUtils {
*/
public static final boolean IS_OS_WINDOWS_2000 = getOSMatches(OS_NAME_WINDOWS_PREFIX, "5.0");
/**
* <p>
* Is {@code true} if this is Windows 2003.
* </p>
* <p>
* The field will return {@code false} if {@code OS_NAME} is {@code null}.
* </p>
*
* @since 3.1
*/
public static final boolean IS_OS_WINDOWS_2003 = getOSMatches(OS_NAME_WINDOWS_PREFIX, "5.2");
/**
* <p>
* Is {@code true} if this is Windows 2008.
* </p>
* <p>
* The field will return {@code false} if {@code OS_NAME} is {@code null}.
* </p>
*
* @since 3.1
*/
public static final boolean IS_OS_WINDOWS_2008 = getOSMatches(OS_NAME_WINDOWS_PREFIX + " Server 2008", "6.1");
/**
* <p>
* Is {@code true} if this is Windows 95.