GitHub PullRequestReviewCommentEvent at 2014-01-05 05:35:12
Repository: incubator-spark
Actor: pwendell
Payload: {"comment":{"url":"https://api.github.com/repos/apache/incubator-spark/pulls/comments/8654423","id":8654423,"diff_hunk":"@@ -0,0 +1,48 @@\n+#!/bin/bash\n+# This script launches sbt for this project. If present it uses the system \n+# version of sbt. If there is no system version of sbt it attempts to download\n+# sbt locally.\n+SBT_VERSION=0.12.4\n+URL1=http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/${SBT_VERSION}/sbt-launch.jar\n+URL2=http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/${SBT_VERSION}/sbt-launch.jar\n+JAR=.sbtlib/sbt-launch-${SBT_VERSION}.jar\n+\n+printf \"Checking for system sbt [\"\n+if hash sbt 2>/dev/null; then \n+    printf \"FOUND]\\n\"\n+    # Use System SBT\n+    sbt $@\n+else\n+    printf \"NOT FOUND]\\n\"\n+    # Download sbt or use allready downloaded\n+    if [ ! -d .sbtlib ]; then\n+\tmkdir .sbtlib\n+    fi\n+    if [ ! -f ${JAR} ]; then\n+\t# Download\n+\tprintf \"Attempting to fetch sbt\\n\"\n+\tif hash curl 2>/dev/null; then\n+\t    curl --progress-bar ${URL1} > ${JAR} || curl --progress-bar ${URL2} > ${JAR}\n+\telif hash wget 2>/dev/null; then\n+\t    wget --progress=bar ${URL1} -O ${JAR} || wget --progress=bar ${URL2} -O ${JAR}\n+\telse\n+\t    printf \"You do not have curl or wget installed, please install sbt manually from http://www.scala-sbt.org/\\n\"\n+\t    exit\n+\tfi\n+    fi\n+    if [ ! -f ${JAR} ]; then\n+\t# We failed to download\n+\tprintf \"Our attempt to download sbt locally to {$JAR} failed. Please install sbt manually from http://www.scala-sbt.org/\\n\"\n+\texit\n+    fi\n+    printf \"Launching sbt from .sbtlib\\n\"\n+    java \\\n+\t-Duser.timezone=UTC \\","path":"sbt","position":40,"original_position":40,"commit_id":"b4a1ffc6c2634118bb1d07216221b862c32d6397","original_commit_id":"b4a1ffc6c2634118bb1d07216221b862c32d6397","user":{"login":"pwendell","id":320616,"avatar_url":"https://gravatar.com/avatar/def597cee3897ba290da26972ff628d2?d=https%3A%2F%2Fidenticons.github.com%2F0ec10d5e3ed3720a2d578417a894cf49.png&r=x","gravatar_id":"def597cee3897ba290da26972ff628d2","url":"https://api.github.com/users/pwendell","html_url":"https://github.com/pwendell","followers_url":"https://api.github.com/users/pwendell/followers","following_url":"https://api.github.com/users/pwendell/following{/other_user}","gists_url":"https://api.github.com/users/pwendell/gists{/gist_id}","starred_url":"https://api.github.com/users/pwendell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwendell/subscriptions","organizations_url":"https://api.github.com/users/pwendell/orgs","repos_url":"https://api.github.com/users/pwendell/repos","events_url":"https://api.github.com/users/pwendell/events{/privacy}","received_events_url":"https://api.github.com/users/pwendell/received_events","type":"User","site_admin":false},"body":"Here could just just use the same java we had before:\r\n    -Xmx1200m -XX:MaxPermSize=350m -XX:ReservedCodeCacheSize=256m\r\n\r\nhttps://github.com/apache/incubator-spark/blob/branch-0.8/sbt/sbt#L28","created_at":"2014-01-05T05:35:12Z","updated_at":"2014-01-05T05:35:12Z","html_url":"https://github.com/apache/incubator-spark/pull/331#discussion_r8654423","pull_request_url":"https://api.github.com/repos/apache/incubator-spark/pulls/331","_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-spark/pulls/comments/8654423"},"html":{"href":"https://github.com/apache/incubator-spark/pull/331#discussion_r8654423"},"pull_request":{"href":"https://api.github.com/repos/apache/incubator-spark/pulls/331"}}}}