Skip to content
Newer
Older
100755 36 lines (27 sloc) 1.4 KB
50947c5 @indrajitr - Update SBT for new project layout
indrajitr authored Feb 6, 2011
1 #!/bin/sh
2
289107f @farmdawgnation Liftsh is now smart enough to download the sbt launcher for you.
farmdawgnation authored Apr 12, 2014
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.
dd91ce8 @farmdawgnation Correct liftsh bootstrapping for new sbt.
farmdawgnation authored Jun 13, 2015
5 SBT_LAUNCHER_PATH="project/sbt-launch-0.13.8.jar"
6 SBT_LAUNCHER_SOURCE="https://dl.bintray.com/sbt/native-packages/sbt/0.13.8/sbt-0.13.8.tgz"
289107f @farmdawgnation Liftsh is now smart enough to download the sbt launcher for you.
farmdawgnation authored Apr 12, 2014
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
dd91ce8 @farmdawgnation Correct liftsh bootstrapping for new sbt.
farmdawgnation authored Jun 13, 2015
10 BASEDIR=$(dirname $SBT_LAUNCHER_PATH)
289107f @farmdawgnation Liftsh is now smart enough to download the sbt launcher for you.
farmdawgnation authored Apr 12, 2014
11 echo "Downloading sbt launcher..."
dd91ce8 @farmdawgnation Correct liftsh bootstrapping for new sbt.
farmdawgnation authored Jun 13, 2015
12 curl -L -o ${SBT_LAUNCHER_PATH}.tgz ${SBT_LAUNCHER_SOURCE}
13 tar xf $SBT_LAUNCHER_PATH.tgz -C $BASEDIR
14 mv $BASEDIR/sbt/bin/sbt-launch.jar $SBT_LAUNCHER_PATH
15 rm -rf $BASEDIR/sbt
289107f @farmdawgnation Liftsh is now smart enough to download the sbt launcher for you.
farmdawgnation authored Apr 12, 2014
16 fi
17
50947c5 @indrajitr - Update SBT for new project layout
indrajitr authored Feb 5, 2011
18 # Load custom liftsh config
19 if test -f ~/.liftsh.config; then
20 . ~/.liftsh.config
21 fi
22
f917c8e @indrajitr Split liftsh options, modifying LIFTSH_OPTS is safer now. You can now…
indrajitr authored Feb 12, 2011
23 # Internal options, always specified
9bd720e @dpp Added JavaScript support and basic Source support
dpp authored Feb 19, 2013
24 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 Feb 5, 2011
25
5275c48 @indrajitr use `-XX:+UseCompressedOops` for 64 bit jvm
indrajitr authored Mar 18, 2012
26 # Add 64bit specific option
9bd720e @dpp Added JavaScript support and basic Source support
dpp authored Feb 20, 2013
27 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 Mar 18, 2012
28
f917c8e @indrajitr Split liftsh options, modifying LIFTSH_OPTS is safer now. You can now…
indrajitr authored Feb 12, 2011
29 # Default options, if nothing is specified
9e27e1c @indrajitr - Update to SBT 0.12.0-M1
indrajitr authored Mar 1, 2012
30 DEFAULT_OPTS=""
f917c8e @indrajitr Split liftsh options, modifying LIFTSH_OPTS is safer now. You can now…
indrajitr authored Feb 12, 2011
31
d377720 @indrajitr Make jar path more unambiguous
indrajitr authored Aug 21, 2011
32 cd `dirname $0`
33
9e27e1c @indrajitr - Update to SBT 0.12.0-M1
indrajitr authored Mar 1, 2012
34 # 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 Apr 12, 2014
35 exec java ${INTERNAL_OPTS} ${LIFTSH_OPTS:-${DEFAULT_OPTS}} -jar ${SBT_LAUNCHER_PATH} "$@"
Something went wrong with that request. Please try again.