You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2021/08/18 07:45:00 UTC

[maven] branch master updated: [MNG-7208] Introduce a system-wide mavenrc.cmd in Windows command script

This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git


The following commit(s) were added to refs/heads/master by this push:
     new 0682a1c  [MNG-7208] Introduce a system-wide mavenrc.cmd in Windows command script
0682a1c is described below

commit 0682a1cc0a7efc9110cdf4b7cc5a17497bd721e5
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Sun Aug 15 22:21:27 2021 +0200

    [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 70ba565..90c5fde 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" %*