Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 27 lines (21 sloc) 0.483 kb
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
#!/bin/sh

VERSION=0.11.3-2
LATEST=http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/${VERSION}/sbt-launch.jar
JAR=.sbtlib/sbt-launch-${VERSION}.jar

if [ ! -d .sbtlib ]; then
  mkdir .sbtlib
fi



if [ ! -f ${JAR} ]; then
  rm .sbtlib/*
  echo "Fetching sbt"
  curl --progress-bar ${LATEST} > ${JAR}
fi

java \
-Duser.timezone=UTC \
-Djava.awt.headless=true \
-Dfile.encoding=UTF-8 \
-XX:MaxPermSize=256m \
-Xmx1g \
-noverify \
-jar ${JAR} \
"$@"
Something went wrong with that request. Please try again.