From 0682a1cc0a7efc9110cdf4b7cc5a17497bd721e5 Mon Sep 17 00:00:00 2001 From: Michael Osipov Date: Sun, 15 Aug 2021 22:21:27 +0200 Subject: [PATCH] [MNG-7208] Introduce a system-wide mavenrc.cmd in Windows command script This closes #523 --- apache-maven/src/assembly/shared/validate.cmd | 1 + 1 file changed, 1 insertion(+) diff --git a/apache-maven/src/assembly/shared/validate.cmd b/apache-maven/src/assembly/shared/validate.cmd index 70ba565c40..90c5fde2a8 100644 --- a/apache-maven/src/assembly/shared/validate.cmd +++ b/apache-maven/src/assembly/shared/validate.cmd @@ -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" %*