forked from twitter/finagle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sbt
executable file
·32 lines (27 loc) · 824 Bytes
/
sbt
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
28
29
30
31
32
#!/bin/bash
root=$(
cd $(dirname $(readlink $0 || echo $0))/..
/bin/pwd
)
sbtjar=sbt-launch-0.7.5.jar
if [ ! -f $sbtjar ]; then
echo 'downloading '$sbtjar 1>&2
curl -O http://simple-build-tool.googlecode.com/files/$sbtjar
fi
test -f $sbtjar || exit 1
java -ea \
$JAVA_OPTS \
-Djava.net.preferIPv4Stack=true \
-XX:+AggressiveOpts \
-XX:+UseParNewGC \
-XX:+UseConcMarkSweepGC \
-XX:+CMSParallelRemarkEnabled \
-XX:+CMSClassUnloadingEnabled \
-XX:MaxPermSize=1024m \
-XX:SurvivorRatio=128 \
-XX:MaxTenuringThreshold=0 \
-Xss8M \
-Xms512M \
-Xmx3G \
-server \
-jar $sbtjar "$@"