commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1180197 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/SystemUtils.java
Date Fri, 07 Oct 2011 20:12:48 GMT
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>



Mime
View raw message