mirror of https://github.com/apache/maven.git
[MNG-7192] Remove unsed MAVEN_CMD_LINE_ARGS environment variable in startup scripts
This closes #492
This commit is contained in:
parent
6b37fcbda8
commit
1328d6ef7f
|
@ -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.
|
||||
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue