Bug ID: 62128
           Summary: JMETER_HOME not set correctly in jmeter.bat
           Product: JMeter
           Version: 4.0
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
  Target Milestone: ---


I'm very happy about the change to define the user specific settings in a
separate setenv.bat (no need to change the jmeter.bat anymore).

But currently I do need to update the jmeter.bat as well, because the
JMETER_HOME directory does not point to the jmeter directory.
That happens if you don't start the jmeter.bat directly, but from another
location (we use separate startup batch files within the testplan directory to
define testplan specific parameters).

It would be great if you could define another fallback for setting the correct
JMETER_HOME direcotry:

rem Guess JMETER_HOME if not defined
set "CURRENT_DIR=%cd%"
if not "%JMETER_HOME%" == "" goto gotHome
if exist "%JMETER_HOME%\bin\jmeter.bat" goto okHome
cd ..
set "JMETER_HOME=%cd%"
if exist "%JMETER_HOME%\bin\jmeter.bat" goto okHome
set JMETER_HOME=%~dp0\..

Thank you

You are receiving this mail because:
You are the assignee for the bug.

Reply via email to