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 19:42:11 UTC

[maven] branch MNG-7209 created (now ada3017)

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

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


      at ada3017  [MNG-7209] Introduce a user mavenrc.cmd in Windows command script

This branch includes the following new commits:

     new ada3017  [MNG-7209] Introduce a user 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-7209] Introduce a user 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-7209
in repository https://gitbox.apache.org/repos/asf/maven.git

commit ada30171d1808643fe2dfa5924ee36ffc1879c5c
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Sun Aug 15 21:41:06 2021 +0200

    [MNG-7209] Introduce a user mavenrc.cmd in Windows command script
    
    This closes #522
---
 apache-maven/src/assembly/shared/validate.cmd | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/apache-maven/src/assembly/shared/validate.cmd b/apache-maven/src/assembly/shared/validate.cmd
index 9b31a8c..70ba565 100644
--- a/apache-maven/src/assembly/shared/validate.cmd
+++ b/apache-maven/src/assembly/shared/validate.cmd
@@ -35,11 +35,12 @@ title %0
 @if "%MAVEN_BATCH_ECHO%"=="on" echo %MAVEN_BATCH_ECHO%
 
 @REM Execute a user defined script before this one
-if not "%MAVEN_SKIP_RC%"=="" goto skipRcPre
+if not "%MAVEN_SKIP_RC%"=="" goto skipRc
 @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" %*
-:skipRcPre
+if exist "%USERPROFILE%\mavenrc.cmd" call "%USERPROFILE%\mavenrc.cmd" %*
+:skipRc
 
 @setlocal