[
https://issues.apache.org/jira/browse/MNG-5823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15065470#comment-15065470
]
Hudson commented on MNG-5823:
-----------------------------
SUCCESS: Integrated in maven-3.x #1179 (See
[https://builds.apache.org/job/maven-3.x/1179/])
[MNG-5823] mvnDebug doesn't work with M2_HOME with spaces - missing (schulte:
rev c188a195562695454a244cb2a9b374d22d1812d5)
* apache-maven/src/bin/mvnDebug
[MNG-5823] mvnDebug doesn't work with M2_HOME with spaces - missing (schulte:
rev ab7b5ab4703a05a8b0923c2e336e7165d9c2180d)
* apache-maven/src/bin/mvnyjp
> mvnDebug doesn't work with M2_HOME with spaces - missing quotes
> ---------------------------------------------------------------
>
> Key: MNG-5823
> URL: https://issues.apache.org/jira/browse/MNG-5823
> Project: Maven
> Issue Type: Bug
> Affects Versions: 3.3.1
> Environment: Windows, Cygwin
> Reporter: Tobias Oberlies
> Assignee: Christian Schulte
> Fix For: 3.4.0
>
>
> When calling {{mvnDebug}} in a Cygwin shell, I get the following error
> {noformat}
> Preparing to Execute Maven in Debug Mode
> dirname: extra operand `Files/Maven/apache-maven-3.3.1/bin/mvnDebug'
> Try `dirname --help' for more information.
> env: /mvn: No such file or directory
> {noformat}
> The root cause are missing quotes in and around the dirname call. The script
> currently calls
> {noformat}
> env MAVEN_OPTS="$MAVEN_OPTS $MAVEN_DEBUG_OPTS" $(dirname $0)/mvn "$@"
> {noformat}
> but the call should be
> {noformat}
> env MAVEN_OPTS="$MAVEN_OPTS $MAVEN_DEBUG_OPTS" "$(dirname "$0")/mvn" "$@"
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)