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/15 20:22:20 UTC

[maven] branch MNG-7208 created (now b78a0d9)

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

michaelo pushed a change to branch MNG-7208
in repository https://gitbox.apache.org/repos/asf/maven.git.


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

This branch includes the following new commits:

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

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


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

Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit b78a0d9fa5e9d2283e38cb9ea023c07b264ef8f2
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" %*