Fixes https://github.com/sbt/sbt/issues/5045
Currently we set `-XX:+UseParallelGC` for JDK greater than 9. This isn't a great default because while the peak throughput is somewhat better than the default g1 collector, the worst case performance is really bad with UseParallelGC, especially when the heap size is large.
Given the sudden diversification of JDK implementations, we should stay clear from `-XX` flags, and let the build users add them if they must.
Fixes https://github.com/sbt/sbt/issues/5076. Arrays should be enclosed in
quotes, or otherwise elements with spaces will be broken, e.g. `-Dfoobar="foo
bar"` will become `-Dfoobar=foo` and `bar`.
Fixes#269
Ref #149
There were two implementations of `realpath`-like things the scripts. One in `sbt` called `realpath` contributed in #27, and another using ls in sbt-launch-lib.bash that I added in #155 because at some point I got confused by the fact macOS doesn't have [realpath(1)](https://linux.die.net/man/1/realpath).
In #257 `sbt` and `sbt-launcher-lib.bash` were merged and the emulated `realpath` was removed.
dcsobral noticed this and raised #269. This commit reinstates the emulated `realpath` as `realpathish` to avoid the future confusion, and removes the inferior version that uses `ls`.
Co-authored-by: Bart Schuller <schuller@lunatech.com>
Co-authored-by: Eugene Yokota <eed3si9n@gmail.com>
Fixes#256
JAVA_OPTS and SBT_OPTS are now read into an array first.
If `-mem` is passed, it will evict all memory related options,
and use the calculated memory options instead.
BSD sed interprets sed 's/\r//' as "replace the literal letter r". A more compatible approach delegates the interpretation of this sequence to bash.
Fixes#186
It used `for` loop which is known to work incorrectly with spaces. This
commit changes it to `while read` loop. This allows more complex options
to be specified in sbtopts files.
Fixes#80
* Use new native packaging abstractions for windows mappings.
* Update universal sbt script to be cygwin friendly
* Modify sbt.bat for universal layout
* Fix some stty icanon (no)echo bugs in launcher script.
* No set XYZ arguments allowed. BAAD sbt practice.
* No longer swaps launcher. New SBT launchers can handle old SBT.
* SBT script now uses sbt-launch-lib.bash.