-
Notifications
You must be signed in to change notification settings - Fork 458
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add to onboarding reproduction logs + instructions for Windows (#2583)
- Loading branch information
1 parent
859c7bb
commit e0a9578
Showing
3 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@echo off | ||
REM This script is a Windows equivalent of bin/run.sh. | ||
REM It finds the latest fatjar and runs the specified Anserini command | ||
|
||
setlocal enabledelayedexpansion | ||
|
||
cd /d "%~dp0" | ||
|
||
REM Locating the latest fatjar in the target directory | ||
for /f "delims=" %%f in ('dir /b /o-n ..\target\*-fatjar.jar 2^>nul') do ( | ||
set FATJAR=..\target\%%f | ||
goto :found | ||
) | ||
|
||
echo No fatjar found in target directory! | ||
exit /b 1 | ||
|
||
:found | ||
REM Running the specified command using the found fatjar with memory and module settings | ||
java -cp "!FATJAR!" -Xms512M -Xmx64G --add-modules jdk.incubator.vector %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters