You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ba...@apache.org on 2007/11/16 21:01:43 UTC

svn commit: r595798 - /commons/proper/lang/trunk/src/java/org/apache/commons/lang/SystemUtils.java

Author: bayard
Date: Fri Nov 16 12:01:43 2007
New Revision: 595798

URL: http://svn.apache.org/viewvc?rev=595798&view=rev
Log:
Adding Vista as per LANG-375

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

Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/SystemUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/SystemUtils.java?rev=595798&r1=595797&r2=595798&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang/SystemUtils.java (original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/SystemUtils.java Fri Nov 16 12:01:43 2007
@@ -1072,6 +1072,17 @@
 
     //-----------------------------------------------------------------------    
     /**
+     * <p>Is <code>true</code> if this is Windows Vista.</p>
+     *
+     * <p>The field will return <code>false</code> if <code>OS_NAME</code> is
+     * <code>null</code>.</p>
+     *
+     * @since 2.4
+     */
+    public static final boolean IS_OS_WINDOWS_VISTA = getOSMatches(OS_NAME_WINDOWS_PREFIX, "6.0"); 
+
+    //-----------------------------------------------------------------------    
+    /**
      * <p>SystemUtils instances should NOT be constructed in standard
      * programming. Instead, the class should be used as
      * <code>SystemUtils.FILE_SEPARATOR</code>.</p>