Ticket #26725: sbt.sh.patch
File sbt.sh.patch, 950 bytes (added by lists@…, 14 years ago) |
---|
-
files/sbt.sh
old new 1 1 #!/bin/sh 2 2 # 3 # Copyright (c) 20 07-2009Jon Buffington. All rights reserved.3 # Copyright (c) 2010 Jon Buffington. All rights reserved. 4 4 # 5 5 # Licensed under the Apache License, Version 2.0 (the "License"); 6 6 # you may not use this file except in compliance with the License. … … 17 17 # Is the location of the SBT launcher JAR file. 18 18 LAUNCHJAR="__SBT_LAUNCHER_PATH__" 19 19 20 # Capture any arguments21 QUOTED_ARGS=""22 while [ "$1" != "" ] ; do23 QUOTED_ARGS="$QUOTED_ARGS \"$1\""24 shift25 done26 27 20 # Ensure enough heap space is created for SBT. 28 21 if [ -z "$JAVA_OPTS" ]; then 29 22 JAVA_OPTS="-Xmx512M" 30 23 fi 31 24 32 25 # Assume java is already in the shell path. 33 exec java $JAVA_OPTS -jar "$LAUNCHJAR" $QUOTED_ARGS26 exec java $JAVA_OPTS -jar "$LAUNCHJAR" "$@"