Ticket #26725: sbt.sh.patch

File sbt.sh.patch, 950 bytes (added by lists@…, 14 years ago)
  • files/sbt.sh

    old new  
    11#!/bin/sh
    22#
    3 # Copyright (c) 2007-2009 Jon Buffington. All rights reserved.
     3# Copyright (c) 2010 Jon Buffington. All rights reserved.
    44#
    55# Licensed under the Apache License, Version 2.0 (the "License");
    66# you may not use this file except in compliance with the License.
     
    1717# Is the location of the SBT launcher JAR file.
    1818LAUNCHJAR="__SBT_LAUNCHER_PATH__"
    1919
    20 # Capture any arguments
    21 QUOTED_ARGS=""
    22 while [ "$1" != "" ] ; do
    23         QUOTED_ARGS="$QUOTED_ARGS \"$1\""
    24         shift
    25 done
    26 
    2720# Ensure enough heap space is created for SBT.
    2821if [ -z "$JAVA_OPTS" ]; then
    2922        JAVA_OPTS="-Xmx512M"
    3023fi
    3124
    3225# Assume java is already in the shell path.
    33 exec java $JAVA_OPTS -jar "$LAUNCHJAR" $QUOTED_ARGS
     26exec java $JAVA_OPTS -jar "$LAUNCHJAR" "$@"