maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [maven] rosti-il commented on a change in pull request #307: Simplify detection of the MAVEN_HOME and make it fully qualified
Date Fri, 10 Jan 2020 14:18:01 GMT
rosti-il commented on a change in pull request #307: Simplify detection of the MAVEN_HOME and
make it fully qualified
URL: https://github.com/apache/maven/pull/307#discussion_r364997442
 
 

 ##########
 File path: apache-maven/src/bin/mvn.cmd
 ##########
 @@ -60,15 +60,11 @@ echo NB: JAVA_HOME should point to a JDK not a JRE >&2
 goto error
 
 :chkMHome
-set "MAVEN_HOME=%~dp0.."
-if not "%MAVEN_HOME%"=="" goto stripMHome
+set "MAVEN_HOME=%~dp0"
+set "MAVEN_HOME=%MAVEN_HOME:~0,-5%"
 
 Review comment:
   As far as I know this is impossible, unfortunately.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message