From f53a45bda896220f4bf0b619c0f22b0b1d736ec9 Mon Sep 17 00:00:00 2001 From: Jason van Zyl Date: Sat, 2 Jun 2007 21:41:53 +0000 Subject: [PATCH] MNG-2992 Set %HOME% to something sane if null Submitted by: Tim Reilly git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@543790 13f79535-47bb-0310-9956-ffa450edef68 --- maven-embedder/src/bin/mvn.bat | 3 +++ 1 file changed, 3 insertions(+) diff --git a/maven-embedder/src/bin/mvn.bat b/maven-embedder/src/bin/mvn.bat index b259853481..8212583b13 100644 --- a/maven-embedder/src/bin/mvn.bat +++ b/maven-embedder/src/bin/mvn.bat @@ -37,6 +37,9 @@ @REM enable echoing my setting MAVEN_BATCH_ECHO to 'on' @if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% +@REM set %HOME% to equivalent of $HOME +if "%HOME%" == "" (set HOME=%HOMEDRIVE%%HOMEPATH%) + @REM Execute a user defined script before this one if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"