Enable starting of jmeter.bat with JM_START set to "start"

Correct documentation for usage of JM_START to start JMeter.
Add a title to 'start' when none was given, which can happen,
when following old documentation.

Bugzilla Id: 62107


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1825804 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Felix Schumacher 2018-03-04 11:07:49 +00:00
parent c660609dff
commit e2270cd9d8
1 changed files with 5 additions and 1 deletions

View File

@ -33,7 +33,7 @@ rem JMETER_HOME - installation directory. Will be guessed from location of jme
rem
rem JM_LAUNCH - java.exe (default) or javaw.exe
rem
rem JM_START - set this to "start" to launch JMeter in a separate window
rem JM_START - set this to 'start ""' to launch JMeter in a separate window
rem this is used by the jmeterw.cmd script.
rem
rem JVM_ARGS - (Optional) Java options used when starting JMeter, e.g. -Dprop=val
@ -192,6 +192,10 @@ if not defined JMETER_COMPLETE_ARGS (
set ARGS=
)
if "%JM_START%" == "start" (
set JM_START=start "Apache JMeter"
)
%JM_START% "%JM_LAUNCH%" %ARGS% %JVM_ARGS% -jar "%JMETER_BIN%ApacheJMeter.jar" %JMETER_CMD_LINE_ARGS%
rem If the errorlevel is not zero, then display it and pause