[MNG-7208] Introduce a system-wide mavenrc.cmd in Windows command script

This closes #523
This commit is contained in:
Michael Osipov 2021-08-15 22:21:27 +02:00
parent 48a9e04c5e
commit 0682a1cc0a
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@ title %0
@REM Execute a user defined script before this one
if not "%MAVEN_SKIP_RC%"=="" goto skipRc
if exist "%PROGRAMDATA%\mavenrc.cmd" call "%PROGRAMDATA%\mavenrc.cmd" %*
@REM check for pre script, once with legacy .bat ending and once with .cmd ending
if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %*
if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %*