mirror of https://github.com/sbt/sbt.git
Add coursier.bat script
This commit is contained in:
parent
3b102da857
commit
51eb69db28
|
|
@ -0,0 +1,29 @@
|
|||
@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% (
|
||||
bitsadmin /transfer "DownloadCoursierLauncher" https://github.com/alexarchambault/coursier/raw/master/coursier %LAUNCHER_PATH%
|
||||
)
|
||||
|
||||
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%
|
||||
|
||||
Loading…
Reference in New Issue