Skip to content

Commit

Permalink
[MNG-6648] 'mavenrc_pre' script does not receive arguments like maven…
Browse files Browse the repository at this point in the history
…rc in Bourne shell does

This closes #511
  • Loading branch information
michael-o committed Jul 23, 2021
1 parent b74199e commit 22a8cfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apache-maven/src/bin/mvn.cmd
Expand Up @@ -35,8 +35,8 @@
@REM Execute a user defined script before this one
if not "%MAVEN_SKIP_RC%"=="" goto skipRcPre
@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"
if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %*
if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %*
:skipRcPre

@setlocal
Expand Down

0 comments on commit 22a8cfa

Please sign in to comment.