Skip to content
This repository has been archived by the owner on Mar 14, 2019. It is now read-only.

Commit

Permalink
Fixed #79: Fail to load plugins.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongl committed Aug 21, 2012
1 parent 85a4ccb commit cef12ce
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions sbt
Original file line number Diff line number Diff line change
@@ -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.