sbt/coursier.bat

30 lines
554 B
Batchfile
Raw Normal View History

2017-01-30 23:00:23 +01:00
@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=%~dp0/coursier
IF NOT EXIST %LAUNCHER_PATH% (
2017-03-20 00:41:04 +01:00
bitsadmin /transfer "DownloadCoursierLauncher" https://github.com/coursier/coursier/raw/master/coursier %LAUNCHER_PATH%
2017-01-30 23:00:23 +01:00
)
SET CMD_LINE_ARGS=%*
java -jar %LAUNCHER_PATH% %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%