Merge pull request #344 from eatkins/windows-sbtopts

Remove leading -J from .sbtopts lines
This commit is contained in:
eugene yokota 2020-11-19 14:14:13 -05:00 committed by GitHub
commit 8ff3a4b1e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -52,10 +52,13 @@ rem users can set SBT_OPTS via .sbtopts
if exist .sbtopts for /F %%A in (.sbtopts) do (
set _sbtopts_line=%%A
if not "!_sbtopts_line:~0,1!" == "#" (
if "!_sbtopts_line:~0,2!" == "-J" (
set _sbtopts_line=!_sbtopts_line:~2,1000!
)
if defined _SBT_OPTS (
set _SBT_OPTS=!_SBT_OPTS! %%A
set _SBT_OPTS=!_SBT_OPTS! !_sbtopts_line!
) else (
set _SBT_OPTS=%%A
set _SBT_OPTS=!_sbtopts_line!
)
)
)