maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Heinrich Schuchardt (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (MNG-5098) Environment variable HOME with space leads to an error
Date Sun, 22 May 2011 16:54:22 GMT
Environment variable HOME with space leads to an error
------------------------------------------------------

                 Key: MNG-5098
                 URL: http://jira.codehaus.org/browse/MNG-5098
             Project: Maven 2 & 3
          Issue Type: Bug
          Components: General
    Affects Versions: 3.0.3
         Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Maven home: C:\PROGRA~1\APACHE~1\APACHE~1.3
Java version: 1.6.0_23, vendor: Sun Microsystems Inc.
Java home: c:\Program Files\Java\jdk1.6.0_23\jre
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
            Reporter: Heinrich Schuchardt
            Priority: Minor


Setting the environment variable
HOME="C:\Program Files\Microsoft Visual Studio 10.0\VC"
leads to an error when executing Maven:

C:\Users\MyUser\workspace\myproject\trunk>mvn.bat
"Files\Microsoft" kann syntaktisch an dieser Stelle nicht verarbeitet werden.
("Files\Microsoft" cannot be processed syntactically in this place.)

The equivalent to the HOME variable in Linux is USERPROFILE for Windows systems.

No assumptions about the value of variable HOME should be made on Windows.

Please observe that the value of USERPROFILE is not necessarily the concatenation of the values
of HOMEDRIVE and HOMEPATH.

Please change mvn.bat to use %USERPROFILE% instead of %HOME% on Windows systems.

-- 
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

        

Mime
View raw message