Permalink
Browse files

Fixed #79: Fail to load plugins.

  • Loading branch information...
1 parent 85a4ccb commit cef12ce0901c7e46f05d118c05ae90a491205067 @zhongl zhongl committed Aug 21, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 sbt
View
9 sbt
@@ -1,11 +1,14 @@
#! /bin/bash
-HOME=`dirname $0`
-SBT_JAR=$HOME/sbt-launch.jar
+SBT_JAR=`dirname $0`/sbt-launch.jar
if [ ! -e $SBT_JAR ]; then
curl http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.11.3-2/sbt-launch.jar -o $SBT_JAR
fi
#HTTP_PROXY="-Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=8087
-java $HTTP_PROXY -Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=384M -jar $SBT_JAR "$@"
+SBT_OPTS="$SBT_OPTS -Xms512M -Xmx1536M -Xss1M -XX:MaxPermSize=384M"
+SBT_OPTS="$SBT_OPTS -XX:+CMSClassUnloadingEnabled"
+SBT_OPTS="$SBT_OPTS -Dsbt.boot.directory=$HOME/.sbt"
+
+java $HTTP_PROXY $SBT_OPTS -jar $SBT_JAR "$@"

0 comments on commit cef12ce

Please sign in to comment.