Skip to content
Browse files

local sbt script

  • Loading branch information...
1 parent 2399d26 commit 6574fcb7d814b3f4f79b75c22a30450c2cc9b33f @hoffrocket hoffrocket committed Jul 16, 2012
Showing with 28 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +27 −0 sbt
View
1 .gitignore
@@ -13,3 +13,4 @@ data
.ensime
*~
.#*
+.sbtlib
View
27 sbt
@@ -0,0 +1,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} \
+"$@"

0 comments on commit 6574fcb

Please sign in to comment.
Something went wrong with that request. Please try again.