diff --git a/sbt/sbt b/sbt/sbt index 62ead8a69dbf..7e89934a68ff 100755 --- a/sbt/sbt +++ b/sbt/sbt @@ -20,10 +20,10 @@ # This script launches sbt for this project. If present it uses the system # version of sbt. If there is no system version of sbt it attempts to download # sbt locally. -SBT_VERSION=`awk -F "=" '/sbt\\.version/ {print $2}' ./project/build.properties` +SBT_VERSION=`awk -F "=" '/sbt\\.version/ {print $2}' $SPARK_HOME/project/build.properties` URL1=http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/${SBT_VERSION}/sbt-launch.jar URL2=http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/${SBT_VERSION}/sbt-launch.jar -JAR=sbt/sbt-launch-${SBT_VERSION}.jar +JAR=$SPARK_HOME/sbt/sbt-launch-${SBT_VERSION}.jar # Download sbt launch jar if it hasn't been downloaded yet if [ ! -f ${JAR} ]; then