You are viewing a plain text version of this content. The canonical link for it is here.
Posted to m2-dev@maven.apache.org by ji...@codehaus.org on 2004/09/29 15:35:51 UTC

[jira] Created: (MNG-86) m2-bootstrap-all.bat fails if ${maven.home} contains spaces

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MNG-86

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MNG-86
    Summary: m2-bootstrap-all.bat fails if ${maven.home} contains spaces
       Type: Bug

     Status: Unassigned
   Priority: Trivial

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: m2

   Assignee: 
   Reporter: Magne Rasmussen

    Created: Wed, 29 Sep 2004 9:35 AM
    Updated: Wed, 29 Sep 2004 9:35 AM
Environment: Windows XP SP2, JDK 1.4.2_05

Description:
m2-bootstrap-all.bat (CVS rev. 1.4) fails on line 114 if M2_HOME=%USERPROFILE%/m2 (expands to 'C:\Documents and Settings\User/m2'). This can be fixed by replacing line 104 with:

SET MAVEN_CMD_LINE_ARGS=%MAVEN_CMD_LINE_ARGS% -Dmaven.home="%M2_HOME%"

The same error manifests itself in maven-core-it/maven-core-it.bat, where line 23 can be replaced with:

%JAVA_HOME%\bin\java.exe %* -Dmaven.home="%M2_HOME%" -cp "..\maven-core-it-verifier\target\maven-core-it-verifier-1.0.jar" org.apache.maven.it.Verifier

as a fix.


There will be a lot of errors if M2_HOME is set like 'SET M2_HOME="C:\Documents and Settings\User\m2"' (notice double qoutes around the path). These qoutes should probably be stripped before trying to use M2_HOME in any script. Or a suitable warning could be put in the docs :-)


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (MNG-86) m2-bootstrap-all.bat fails if ${maven.home} contains spaces

Posted by ji...@codehaus.org.
The following comment has been added to this issue:

     Author: Magne Rasmussen
    Created: Thu, 30 Sep 2004 3:06 AM
       Body:
The patch does not address the second issue (double qoutes around path in M2_HOME). This should be placed in docs or FAQ.
---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/MNG-86?page=comments#action_24759

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MNG-86

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MNG-86
    Summary: m2-bootstrap-all.bat fails if ${maven.home} contains spaces
       Type: Bug

     Status: Unassigned
   Priority: Trivial

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: m2

   Assignee: 
   Reporter: Magne Rasmussen

    Created: Wed, 29 Sep 2004 9:35 AM
    Updated: Thu, 30 Sep 2004 3:06 AM
Environment: Windows XP SP2, JDK 1.4.2_05

Description:
m2-bootstrap-all.bat (CVS rev. 1.4) fails on line 114 if M2_HOME=%USERPROFILE%/m2 (expands to 'C:\Documents and Settings\User/m2'). This can be fixed by replacing line 104 with:

SET MAVEN_CMD_LINE_ARGS=%MAVEN_CMD_LINE_ARGS% -Dmaven.home="%M2_HOME%"

The same error manifests itself in maven-core-it/maven-core-it.bat, where line 23 can be replaced with:

%JAVA_HOME%\bin\java.exe %* -Dmaven.home="%M2_HOME%" -cp "..\maven-core-it-verifier\target\maven-core-it-verifier-1.0.jar" org.apache.maven.it.Verifier

as a fix.


There will be a lot of errors if M2_HOME is set like 'SET M2_HOME="C:\Documents and Settings\User\m2"' (notice double qoutes around the path). These qoutes should probably be stripped before trying to use M2_HOME in any script. Or a suitable warning could be put in the docs :-)


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (MNG-86) m2-bootstrap-all.bat fails if ${maven.home} contains spaces

Posted by ji...@codehaus.org.
The following comment has been added to this issue:

     Author: Emmanuel Venisse
    Created: Wed, 29 Sep 2004 10:02 AM
       Body:
Can you send patch? Thanks.
---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/MNG-86?page=comments#action_24742

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MNG-86

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MNG-86
    Summary: m2-bootstrap-all.bat fails if ${maven.home} contains spaces
       Type: Bug

     Status: Unassigned
   Priority: Trivial

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: m2

   Assignee: 
   Reporter: Magne Rasmussen

    Created: Wed, 29 Sep 2004 9:35 AM
    Updated: Wed, 29 Sep 2004 10:02 AM
Environment: Windows XP SP2, JDK 1.4.2_05

Description:
m2-bootstrap-all.bat (CVS rev. 1.4) fails on line 114 if M2_HOME=%USERPROFILE%/m2 (expands to 'C:\Documents and Settings\User/m2'). This can be fixed by replacing line 104 with:

SET MAVEN_CMD_LINE_ARGS=%MAVEN_CMD_LINE_ARGS% -Dmaven.home="%M2_HOME%"

The same error manifests itself in maven-core-it/maven-core-it.bat, where line 23 can be replaced with:

%JAVA_HOME%\bin\java.exe %* -Dmaven.home="%M2_HOME%" -cp "..\maven-core-it-verifier\target\maven-core-it-verifier-1.0.jar" org.apache.maven.it.Verifier

as a fix.


There will be a lot of errors if M2_HOME is set like 'SET M2_HOME="C:\Documents and Settings\User\m2"' (notice double qoutes around the path). These qoutes should probably be stripped before trying to use M2_HOME in any script. Or a suitable warning could be put in the docs :-)


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (MNG-86) m2-bootstrap-all.bat fails if ${maven.home} contains spaces

Posted by ji...@codehaus.org.
The following comment has been added to this issue:

     Author: Emmanuel Venisse
    Created: Thu, 30 Sep 2004 4:55 AM
       Body:
Patch applied for the first issue.
---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/MNG-86?page=comments#action_24762

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MNG-86

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MNG-86
    Summary: m2-bootstrap-all.bat fails if ${maven.home} contains spaces
       Type: Bug

     Status: Unassigned
   Priority: Trivial

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: m2

   Assignee: 
   Reporter: Magne Rasmussen

    Created: Wed, 29 Sep 2004 9:35 AM
    Updated: Thu, 30 Sep 2004 4:55 AM
Environment: Windows XP SP2, JDK 1.4.2_05

Description:
m2-bootstrap-all.bat (CVS rev. 1.4) fails on line 114 if M2_HOME=%USERPROFILE%/m2 (expands to 'C:\Documents and Settings\User/m2'). This can be fixed by replacing line 104 with:

SET MAVEN_CMD_LINE_ARGS=%MAVEN_CMD_LINE_ARGS% -Dmaven.home="%M2_HOME%"

The same error manifests itself in maven-core-it/maven-core-it.bat, where line 23 can be replaced with:

%JAVA_HOME%\bin\java.exe %* -Dmaven.home="%M2_HOME%" -cp "..\maven-core-it-verifier\target\maven-core-it-verifier-1.0.jar" org.apache.maven.it.Verifier

as a fix.


There will be a lot of errors if M2_HOME is set like 'SET M2_HOME="C:\Documents and Settings\User\m2"' (notice double qoutes around the path). These qoutes should probably be stripped before trying to use M2_HOME in any script. Or a suitable warning could be put in the docs :-)


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (MNG-86) m2-bootstrap-all.bat fails if ${maven.home} contains spaces

Posted by ji...@codehaus.org.
The following issue has been updated:

    Updater: $changelogauthor.fullName (mailto:)
       Date: Thu, 30 Sep 2004 3:04 AM
    Changes:
             Attachment changed to MNG-86.patch
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://jira.codehaus.org/browse/MNG-86?page=history

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MNG-86

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MNG-86
    Summary: m2-bootstrap-all.bat fails if ${maven.home} contains spaces
       Type: Bug

     Status: Unassigned
   Priority: Trivial

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: m2

   Assignee: 
   Reporter: Magne Rasmussen

    Created: Wed, 29 Sep 2004 9:35 AM
    Updated: Thu, 30 Sep 2004 3:04 AM
Environment: Windows XP SP2, JDK 1.4.2_05

Description:
m2-bootstrap-all.bat (CVS rev. 1.4) fails on line 114 if M2_HOME=%USERPROFILE%/m2 (expands to 'C:\Documents and Settings\User/m2'). This can be fixed by replacing line 104 with:

SET MAVEN_CMD_LINE_ARGS=%MAVEN_CMD_LINE_ARGS% -Dmaven.home="%M2_HOME%"

The same error manifests itself in maven-core-it/maven-core-it.bat, where line 23 can be replaced with:

%JAVA_HOME%\bin\java.exe %* -Dmaven.home="%M2_HOME%" -cp "..\maven-core-it-verifier\target\maven-core-it-verifier-1.0.jar" org.apache.maven.it.Verifier

as a fix.


There will be a lot of errors if M2_HOME is set like 'SET M2_HOME="C:\Documents and Settings\User\m2"' (notice double qoutes around the path). These qoutes should probably be stripped before trying to use M2_HOME in any script. Or a suitable warning could be put in the docs :-)


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (MNG-86) m2-bootstrap-all.bat fails if ${maven.home} contains spaces

Posted by ji...@codehaus.org.
The following comment has been added to this issue:

     Author: Carlos Sanchez
    Created: Sun, 17 Oct 2004 8:47 AM
       Body:
As of today it doesn't work if M2_HOME contains spaces
---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/MNG-86?page=comments#action_25499

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MNG-86

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MNG-86
    Summary: m2-bootstrap-all.bat fails if ${maven.home} contains spaces
       Type: Bug

     Status: Unassigned
   Priority: Trivial

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: m2

   Assignee: 
   Reporter: Magne Rasmussen

    Created: Wed, 29 Sep 2004 9:35 AM
    Updated: Sun, 17 Oct 2004 8:47 AM
Environment: Windows XP SP2, JDK 1.4.2_05

Description:
m2-bootstrap-all.bat (CVS rev. 1.4) fails on line 114 if M2_HOME=%USERPROFILE%/m2 (expands to 'C:\Documents and Settings\User/m2'). This can be fixed by replacing line 104 with:

SET MAVEN_CMD_LINE_ARGS=%MAVEN_CMD_LINE_ARGS% -Dmaven.home="%M2_HOME%"

The same error manifests itself in maven-core-it/maven-core-it.bat, where line 23 can be replaced with:

%JAVA_HOME%\bin\java.exe %* -Dmaven.home="%M2_HOME%" -cp "..\maven-core-it-verifier\target\maven-core-it-verifier-1.0.jar" org.apache.maven.it.Verifier

as a fix.


There will be a lot of errors if M2_HOME is set like 'SET M2_HOME="C:\Documents and Settings\User\m2"' (notice double qoutes around the path). These qoutes should probably be stripped before trying to use M2_HOME in any script. Or a suitable warning could be put in the docs :-)


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira