-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsbt
More file actions
executable file
·23 lines (18 loc) · 739 Bytes
/
sbt
File metadata and controls
executable file
·23 lines (18 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
installCs(){
curl https://raw.github.com/n8han/conscript/master/setup.sh | sh
}
DIR0=`dirname $0`
if ! [ -f $DIR0/sbt-launch.jar ] ; then
if [ ! -f ~/.conscript/sbt-launch.jar ] ; then
installCs
# TODO: check for current version of sbt somehow, and reinstall conscript if not found
fi
set -e
if [ -f ~/.conscript/sbt-launch.jar ] ; then
ln -s ~/.conscript/sbt-launch.jar
else
wget http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-tools.sbt/sbt-launch/0.11.2/sbt-launch.jar
fi
fi
#java -Xmx712M -Xss2M -XX:+CMSClassUnloadingEnabled -jar `dirname $0`/sbt-launch.jar "$@"
java -Dfile.encoding=UTF8 -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=512m -jar $DIR0/sbt-launch.jar "$@"