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>