You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2011/10/07 22:12:48 UTC

svn commit: r1180197 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SystemUtils.java

Author: ggregory
Date: Fri Oct  7 20:12:48 2011
New Revision: 1180197

URL: http://svn.apache.org/viewvc?rev=1180197&view=rev
Log:
[LANG-759] Add Support in SystemUtils for Windows Server 2003 and Windows Server 2008.

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SystemUtils.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SystemUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SystemUtils.java?rev=1180197&r1=1180196&r2=1180197&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SystemUtils.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SystemUtils.java Fri Oct  7 20:12:48 2011
@@ -1112,6 +1112,30 @@ public class SystemUtils {
 
     /**
      * <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.
      * </p>
      * <p>