Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 10 is detected as OS "DOS" #7

Closed
michael-o opened this issue Jan 21, 2016 · 0 comments
Closed

Windows 10 is detected as OS "DOS" #7

michael-o opened this issue Jan 21, 2016 · 0 comments
Milestone

Comments

@michael-o
Copy link
Member

See Maven Output which uses Plexus Utils's Os:

>mvn -v
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)
Maven home: C:\Program Files\apache-maven-3.3.9\bin\..
Java version: 1.8.0_72, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_72\jre
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "dos"

getOsFamily calls the method setValidFamilies which adds DOS as first member to the collection and the check for the OS tries for the path separator ;. It matches and DOS is returned. Obviously the order of if clauses values in isOs should be applied to the values in setValidFamilies.

@khmarbaise khmarbaise added this to the 3.1.0 milestone Aug 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants