[MNG-7192] Remove unsed MAVEN_CMD_LINE_ARGS environment variable in startup scripts

This closes #492
This commit is contained in:
Michael Osipov 2021-07-20 01:07:42 +02:00
parent 6b37fcbda8
commit 1328d6ef7f
3 changed files with 1 additions and 8 deletions

View File

@ -2,8 +2,6 @@
:init
set MAVEN_CMD_LINE_ARGS=%*
@REM Find the project basedir, i.e., the directory that contains the directory ".mvn".
@REM Fallback to current working directory if not found.

View File

@ -10,11 +10,6 @@ if $cygwin ; then
LAUNCHER_JAR=`cygpath --path --windows "$LAUNCHER_JAR"`
fi
# Provide a "standardized" way to retrieve the CLI args that will
# work with both Windows and non-Windows executions.
MAVEN_CMD_LINE_ARGS="$@"
export MAVEN_CMD_LINE_ARGS
exec "$JAVACMD" \
$MAVEN_OPTS \
$MAVEN_DEBUG_OPTS \

View File

@ -5,7 +5,7 @@
-classpath %LAUNCHER_JAR% ^
%MAVENHOME_CONFIG% ^
"-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^
%MAVEN_LAUNCHER% %MAVEN_CMD_LINE_ARGS%
%MAVEN_LAUNCHER% %*
if ERRORLEVEL 1 goto error
goto end