Skip to content

Commit 567e4a4

Browse files
committed
Patch the Windows BehaviorSearch fix
1 parent 668d067 commit 567e4a4

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

setup-netlogo/action.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,13 @@ runs:
437437
's|for %%f in (\.\\\*\.jar) do (|for %%f in (%LIBRARY_DIR%\\*.jar) do (|' \
438438
"${behaviorsearch_binary}"
439439
440+
# Enumerating from LIBRARY_DIR (above) makes %%f expand to
441+
# each jar's full path already, so the LIBRARY_DIR\ prefix
442+
# here would double up the path and break the classpath.
443+
sed -i \
444+
's|set JARS=%LIBRARY_DIR%\\%%f;!JARS!|set JARS=%%f;!JARS!|' \
445+
"${behaviorsearch_binary}"
446+
440447
echo "--- Patched behaviorsearch_headless.bat (relevant lines) ---"
441448
grep -n -i \
442449
-e "LIBRARY_DIR" \

0 commit comments

Comments
 (0)