Skip to content

Commit

Permalink
fix sbt#766
Browse files Browse the repository at this point in the history
  • Loading branch information
giabao committed May 14, 2016
1 parent cee091c commit e99a75d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ realpath () {

# Loads a configuration file full of default command line options for this script.
loadConfigFile() {
cat "$1" | sed '/^\#/d'
cat "$1" | sed '/^\#/d' | sed 's/^-J-X/-X/' | tr '\r\n' ' '
}


Expand All @@ -40,7 +40,6 @@ lib_dir="$(realpath "${app_home}/../lib")"
${{template_declares}}

# If a configuration file exist, read the contents to $opts
[ -f "$script_conf_file" ] && set -- $(loadConfigFile "$script_conf_file") "$opts"
[ -f "$script_conf_file" ] && opts=$(loadConfigFile "$script_conf_file")

java -classpath $app_classpath $opts $app_mainclass $@

0 comments on commit e99a75d

Please sign in to comment.