Skip to content

Commit

Permalink
add windows 8.1 and windows 10
Browse files Browse the repository at this point in the history
  • Loading branch information
ahadas committed Sep 30, 2016
1 parent e99a2ce commit ee1a3b8
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ public enum OsVersion implements ComparableRuntimeProperty {
WINDOWS_7("Windows 7"),
/** Windows 8 */
WINDOWS_8("Windows 8"),
/** Windows 8 */
WINDOWS_8_1("Windows 8.1"),
/** Windows 8 */
WINDOWS_10("Windows 10"),


///////////////////////
Expand Down Expand Up @@ -187,8 +191,14 @@ static OsVersion parseSystemProperty(String osVersionProp, String osNameProp, Os
if (osNameProp.equals("Windows 8"))
return WINDOWS_8;

if (osNameProp.equals("Windows 8.1"))
return WINDOWS_8_1;

if (osNameProp.equals("Windows 10"))
return WINDOWS_10;

// Newer version we don't know of yet, assume latest supported OS version
return WINDOWS_8;
return WINDOWS_10;
}
// Mac OS X versions
if (osFamily==OsFamily.MAC_OS_X) {
Expand Down

0 comments on commit ee1a3b8

Please sign in to comment.