https://bz.apache.org/bugzilla/show_bug.cgi?id=62128

            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
          Assignee: issues@jmeter.apache.org
          Reporter: logo...@gmx.at
  Target Milestone: ---

Hi,

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
set "JMETER_HOME=%CURRENT_DIR%"
if exist "%JMETER_HOME%\bin\jmeter.bat" goto okHome
cd ..
set "JMETER_HOME=%cd%"
cd "%CURRENT_DIR%"
if exist "%JMETER_HOME%\bin\jmeter.bat" goto okHome
set JMETER_HOME=%~dp0\..
:gotHome

Thank you

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

Reply via email to