Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add setlocal/endlocal to bat files #573

Closed
henri-tremblay opened this issue Jun 19, 2012 · 1 comment
Closed

Add setlocal/endlocal to bat files #573

henri-tremblay opened this issue Jun 19, 2012 · 1 comment
Assignees
Milestone

Comments

@henri-tremblay
Copy link
Contributor

setlocal creates a limited scope for a bat variable. If you don't set it in a bat, they keep accumulating.

For instance, when you launch gatling.bat, the JAVA_OPTS are concatenated to the value from the previous run.

You should add setlocal / endlocal to gatling.bat and recorder.bat

For gatling.bat:

@Rem limitations under the License.
@Rem

setlocal

rem set GATLING_HOME automatically if possible
set "OLD_DIR=%cd%"

....

:exit
pause
endlocal
exit /b 0

Pretty much the same for recorder.bat

@ghost ghost assigned slandelle Jun 20, 2012
@slandelle
Copy link
Member

Done, thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants