Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

downloaded sbt

  • Loading branch information...
commit 394bc97d680043554c88976dbd3f8dee48c8f3e6 1 parent e9fd1ec
matthew authored
Showing with 30 additions and 1 deletion.
  1. +2 −1  .gitignore
  2. +28 −0 sbt
View
3  .gitignore
@@ -1,2 +1,3 @@
src/main/resources/oozie.properties
-target
+target
+sbtlib
View
28 sbt
@@ -0,0 +1,28 @@
+#!/bin/bash
+#------------------------------------------------------------------
+# sbt driver script.
+#------------------------------------------------------------------
+
+sbtdir=./sbtlib
+version="0.11.3"
+jarname="sbt-launch-$version.jar"
+if [ ! -d "$sbtdir" ] || [ ! -f "$sbtdir/$jarname" ]; then
+
+ echo "Fetching sbt version $version"
+ mkdir -p sbtlib
+ curl "http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/$version/sbt-launch.jar" > sbtlib/$jarname
+ echo "sbt launch fetched, starting sbt proper...."
+ sleep 2
+fi
+
+maxheap=2048M
+debug=
+
+if [ -n "$debug" ]; then
+ echo "Running in debug mode, port: $debug"
+ JAVA_OPTIONS="$JAVA_OPTIONS -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=$debug"
+fi
+
+# -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256m is supposed to reduce PermGen errors.
+echo env java $JAVA_OPTIONS -Xmx$maxheap -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256m -jar sbtlib/$jarname "$@"
+env java $JAVA_OPTIONS -Xmx$maxheap -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256m -jar sbtlib/$jarname "$@"
Please sign in to comment.
Something went wrong with that request. Please try again.