Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove sbt proxy.

  • Loading branch information...
commit 76f9c754cba58c2a154b6a86c54c2fff81ef84cf 1 parent eb3ec08
@daithiocrualaoich daithiocrualaoich authored
Showing with 32 additions and 10 deletions.
  1. +32 −10 sbt011
View
42 sbt011
@@ -1,5 +1,10 @@
#!/bin/bash
+if [ -f "~/.sbtconfig" ]; then
+ . ~/.sbtconfig
+fi
+
+
# SBT configuration
export SBT_BOOT_DIR=${HOME}/.sbt/boot/
@@ -7,18 +12,35 @@ if [ ! -d "${SBT_BOOT_DIR}" ]; then
mkdir -p ${SBT_BOOT_DIR}
fi
-if [ -f "~/.sbtconfig" ]; then
- . ~/.sbtconfig
-fi
-PROXY_PARAMS="-Dhttp.proxyHost=devscreen.gudev.gnl -Dhttp.proxyPort=3128"
-if [ "$1" == "--no-proxy" ]; then
- PROXY_PARAMS=""
- shift
-fi
+# Build configuration
+BUILD_PARAMS=""
+if [ -n "$BUILD_NUMBER" ]; then
+ BUILD_PARAMS="${BUILD_PARAMS} -Dbuild.number=\"$BUILD_NUMBER\""
+fi
+if [ -n "$BUILD_VCS_NUMBER" ]; then
+ BUILD_PARAMS="${BUILD_PARAMS} -Dbuild.vcs.number=\"$BUILD_VCS_NUMBER\""
+fi
+
+
+# Ivy configuration
+IVY_PARAMS=""
+for arg in "$@"
+do
+ if [ "$arg" == "--directory-ivy-cache" ]; then
+ echo "setting ivy cache dir"
+ IVY_PARAMS="-Dsbt.ivy.home=.ivy -Divy.home=.ivy"
+ shift
+ fi
+done
+
+
+#MaxPermSize specifies the the maximum size for the permanent generation heap,
+# a heap that holds objects such as classes and methods. Xmx is the heap size.
-java -Xmx768M -XX:MaxPermSize=384m \
+java -Xmx2048M -XX:MaxPermSize=1024m \
-Dsbt.boot.directory=$SBT_BOOT_DIR \
- $PROXY_PARAMS \
+ $BUILD_PARAMS \
+ $IVY_PARAMS \
$SBT_EXTRA_PARAMS \
-jar `dirname $0`/dev/sbt-launch-0.11.3.jar "$@"
Please sign in to comment.
Something went wrong with that request. Please try again.