cegredev / josi

A Java library designed to make making decisions based on the current operating system easier.
MIT License
36 stars 4 forks source link

Support Windows Server versions #6

Open dbwiddis opened 3 years ago

dbwiddis commented 3 years ago

The current implementation only includes "NT Workstation" (e.g., personal) versions and doesn't work for Windows Server versions. See JDK Source for a list of possible values for the os.name property.

There are a few tricky points to consider here:

cegredev commented 3 years ago

This is another reason for a better/more flexible versioning system than having a separate enum value for every iteration. I'm hoping to get on that in the next couple of days. Thanks a lot for the info and resources!

dbwiddis commented 2 years ago

On the theme of WIndows version numbers needing build numbers, and on the heels of #4 which was the first to release a version "11" under a "10" label... Windows 11 can also show up as WIndows 10 with a build number of 22000+. So this particular issue should probably take a higher priority now. :)