You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "John Casey (JIRA)" <ji...@codehaus.org> on 2008/02/06 20:07:28 UTC

[jira] Closed: (MNG-3354) mvn.bat incorrectly detects OS on Windows NT or XP with Novell login

     [ http://jira.codehaus.org/browse/MNG-3354?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey closed MNG-3354.
---------------------------

    Resolution: Fixed

Patch applied, thanks.

Incidentally, I don't have a copy of windows here, so if someone could try this and reopen it if it doesn't work, I'd appreciate it!

> mvn.bat incorrectly detects OS on Windows NT or XP with Novell login
> --------------------------------------------------------------------
>
>                 Key: MNG-3354
>                 URL: http://jira.codehaus.org/browse/MNG-3354
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Command Line
>    Affects Versions: 2.0.8
>            Reporter: Jaroslaw Bojar
>            Assignee: John Casey
>             Fix For: 2.0.9, 2.1-alpha-1
>
>         Attachments: mvn.bat, mvnDebug.bat
>
>
> On Windows NT or XP with Novell Client Login mvn.bat incorrectly selects OS as Win9x, because Novell sets OS environment variable to WINNT instead of Windows_NT.
> As a result it processes command line arguments as in windows 9x, what is very inconvenient because all arguments with = (equals) sign must be quoted on command line. For example -DdownloadSources=true must be quoted as "-DdownloadSources=true".
> The reason for such behaviour is that mvn.bat checks in several places if "%OS%"=="Windows_NT" and this statement yields false on windows with novell login. On winnt with novell login OS is set to WINNT instead of Windows_NT.
> I attached corrected mvn.bat and mvnDebug.bat that check additionally for "%OS%"=="WINNT".

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira