Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 32 lines (23 sloc) 1.287 kb
50947c5 @indrajitr - Update SBT for new project layout
indrajitr authored
1 #!/bin/sh
2
289107f @farmdawgnation Liftsh is now smart enough to download the sbt launcher for you.
farmdawgnation authored
3 # Make sure to change the name of the launcher jar and the source when bumping sbt version
4 # so that the existence test below fails and we download the new jar.
51fd39b @farmdawgnation Bump sbt to version 0.13.5.
farmdawgnation authored
5 SBT_LAUNCHER_PATH="project/sbt-launch-0.13.5.jar"
6 SBT_LAUNCHER_SOURCE="http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.5/sbt-launch.jar"
289107f @farmdawgnation Liftsh is now smart enough to download the sbt launcher for you.
farmdawgnation authored
7
8 # Download the sbt launcher on-the-fly if it's not already in the repository.
9 if test ! -f $SBT_LAUNCHER_PATH; then
10 echo "Downloading sbt launcher..."
11 curl -o ${SBT_LAUNCHER_PATH} ${SBT_LAUNCHER_SOURCE}
12 fi
13
50947c5 @indrajitr - Update SBT for new project layout
indrajitr authored
14 # Load custom liftsh config
15 if test -f ~/.liftsh.config; then
16 . ~/.liftsh.config
17 fi
18
f917c8e @indrajitr Split liftsh options, modifying LIFTSH_OPTS is safer now. You can now do...
indrajitr authored
19 # Internal options, always specified
9bd720e @dpp Added JavaScript support and basic Source support
dpp authored
20 INTERNAL_OPTS="-Dfile.encoding=UTF-8 -Xmx1768m -noverify -XX:ReservedCodeCacheSize=296m -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:MaxPermSize=812m"
50947c5 @indrajitr - Update SBT for new project layout
indrajitr authored
21
5275c48 @indrajitr use `-XX:+UseCompressedOops` for 64 bit jvm
indrajitr authored
22 # Add 64bit specific option
9bd720e @dpp Added JavaScript support and basic Source support
dpp authored
23 exec java -version 2>&1 | grep -q "64-Bit" && INTERNAL_OPTS="${INTERNAL_OPTS} -XX:+UseCompressedOops -XX:ReservedCodeCacheSize=328m"
5275c48 @indrajitr use `-XX:+UseCompressedOops` for 64 bit jvm
indrajitr authored
24
f917c8e @indrajitr Split liftsh options, modifying LIFTSH_OPTS is safer now. You can now do...
indrajitr authored
25 # Default options, if nothing is specified
9e27e1c @indrajitr - Update to SBT 0.12.0-M1
indrajitr authored
26 DEFAULT_OPTS=""
f917c8e @indrajitr Split liftsh options, modifying LIFTSH_OPTS is safer now. You can now do...
indrajitr authored
27
d377720 @indrajitr Make jar path more unambiguous
indrajitr authored
28 cd `dirname $0`
29
9e27e1c @indrajitr - Update to SBT 0.12.0-M1
indrajitr authored
30 # Call with INTERNAL_OPTS followed by LIFTSH_OPTS (or DEFAULT_OPTS). java always takes the last option when duplicate.
289107f @farmdawgnation Liftsh is now smart enough to download the sbt launcher for you.
farmdawgnation authored
31 exec java ${INTERNAL_OPTS} ${LIFTSH_OPTS:-${DEFAULT_OPTS}} -jar ${SBT_LAUNCHER_PATH} "$@"
Something went wrong with that request. Please try again.