forked from precog/async-blobstore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sbt.bat
33 lines (20 loc) · 815 Bytes
/
sbt.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@REM https://github.com/xerial/sbt-pack/blob/master/src/main/templates/launch-bat.mustache
@REM would be worth getting more inspiration from
@echo off
SET ERROR_CODE=0
SET LAUNCHER_PATH=%localappdata%/coursier
IF NOT EXIST "%LAUNCHER_PATH%" (
bitsadmin /transfer "DownloadCoursierLauncher" https://github.com/coursier/coursier/raw/master/coursier "%LAUNCHER_PATH%"
)
SET CMD_LINE_ARGS=%*
@REM this is the hackiest thing ever. don't delete the extra newline here!
set NL=^
java -Xms512m -Xmx4g -Xss2m -XX:ReservedCodeCacheSize=512m -Dfile.encoding=UTF8 -Djna.nosys=true -Dline.separator=^%NL%%NL% -jar "%LAUNCHER_PATH%" launch org.scala-sbt:sbt-launch:1.0.2 -- %CMD_LINE_ARGS%
IF ERRORLEVEL 1 GOTO error
GOTO end
:error
SET ERROR_CODE=1
:end
SET LAUNCHER_PATH=
SET CMD_LINE_ARGS=
EXIT /B %ERROR_CODE%