[MNG-5823] mvnDebug doesn't work with M2_HOME with spaces - missing quotes
Project: http://git-wip-us.apache.org/repos/asf/maven/repo Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/46c15814 Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/46c15814 Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/46c15814 Branch: refs/heads/MNG-2199-IT Commit: 46c1581474ed3b8110dbc7275172b92056b6e5dd Parents: fe58646 Author: Tobias Oberlies <tobias.oberl...@sap.com> Authored: Sat Dec 19 18:06:23 2015 +0100 Committer: Michael Osipov <micha...@apache.org> Committed: Sun Jan 29 22:56:10 2017 +0100 ---------------------------------------------------------------------- apache-maven/src/bin/mvnDebug | 2 +- apache-maven/src/bin/mvnyjp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/maven/blob/46c15814/apache-maven/src/bin/mvnDebug ---------------------------------------------------------------------- diff --git a/apache-maven/src/bin/mvnDebug b/apache-maven/src/bin/mvnDebug index 09f48d9..8d6e6a1 100755 --- a/apache-maven/src/bin/mvnDebug +++ b/apache-maven/src/bin/mvnDebug @@ -31,4 +31,4 @@ MAVEN_DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,addre echo Preparing to execute Maven in debug mode -env MAVEN_OPTS="$MAVEN_OPTS" MAVEN_DEBUG_OPTS="$MAVEN_DEBUG_OPTS" $(dirname $0)/mvn "$@" +env MAVEN_OPTS="$MAVEN_OPTS" MAVEN_DEBUG_OPTS="$MAVEN_DEBUG_OPTS" "$(dirname "$0")/mvn" "$@" http://git-wip-us.apache.org/repos/asf/maven/blob/46c15814/apache-maven/src/bin/mvnyjp ---------------------------------------------------------------------- diff --git a/apache-maven/src/bin/mvnyjp b/apache-maven/src/bin/mvnyjp index e08f77e..b2dbe1d 100755 --- a/apache-maven/src/bin/mvnyjp +++ b/apache-maven/src/bin/mvnyjp @@ -32,4 +32,4 @@ if [ ! -f "$YJPLIB" ]; then exit 1 fi -env MAVEN_OPTS="-agentpath:$YJPLIB=onexit=snapshot,onexit=memory,tracing,onlylocal $MAVEN_OPTS" $(dirname $0)/mvn "$@" +env MAVEN_OPTS="-agentpath:$YJPLIB=onexit=snapshot,onexit=memory,tracing,onlylocal $MAVEN_OPTS" "$(dirname "$0")/mvn" "$@"