Commit Graph

221 Commits

Author SHA1 Message Date
Eugene Yokota 9471fab91b Remove debug echo 2019-10-16 13:18:58 -04:00
Eugene Yokota 689fdd682a remove unnecessary /I 2019-10-16 12:00:47 -04:00
eugene yokota 3953c80c73
Update src/universal/bin/sbt.bat
Co-Authored-By: Eric Peters <eric@peters.org>
2019-10-16 11:56:43 -04:00
eugene yokota 7d7e01015f
Update src/universal/bin/sbt.bat
Co-Authored-By: Eric Peters <eric@peters.org>
2019-10-16 11:54:22 -04:00
Eugene Yokota 00e5224fde Add debugging for -D parsing 2019-10-16 10:53:49 -04:00
Eugene Yokota 71a216c037 Fix -D with quotes
Fixe https://github.com/sbt/sbt/issues/5192
2019-10-16 10:48:11 -04:00
Eugene Yokota 546a8b8949 Fix verbose output for SBT_ARGS 2019-10-16 10:45:33 -04:00
eugene yokota ab001f5597
Fix typo around continue/quit
Fixes https://github.com/sbt/sbt/issues/5188
2019-10-15 12:21:07 -04:00
Eric Peters f3b9d7572e Add usage for --debug-inc to bash sbt, add impl to sbt.bat 2019-10-11 09:49:43 -07:00
Eric Peters b5fd78f74b Intial sbt.bat refactor to match the universal bash script - implement --help, --verbose, --version, --script-verion, --numeric-version, .sbtopts, .jvmopts, -D 2019-10-09 19:47:49 -07:00
Alex Zolotko a9d85c6df6 Detect more memory settings
Fixes sbt/sbt#5135
2019-10-09 19:47:45 -07:00
Eugene Yokota 8caa28b57b --verbose mode for Windows 2019-09-25 07:45:16 +01:00
Eugene Yokota 98efb989db Fix equal sign handling for -D
Fixes sbt/sbt#2695
By the time the arguments are passed to a batch script,
it seems like  is parsed away.
for /F did not work since it would not handle double quoted
paths that include whitespaces.
This adds special handling for -D parameters only.
2019-09-25 06:57:07 +01:00
Eric Peters 56cdfcaa90 Add --numeric-version, --script-version, and update --version to print both versions 2019-09-24 16:55:57 -07:00
Eric Peters 7e17407cba Update sbt.1 man page options 2019-09-23 08:30:51 -07:00
Eugene Yokota 0a09fa62ed SBT_ETC_FILE
Travis CI adds `/etc/sbt/sbtopts` that prevents us from testing the out-of-box behavior. This allows us to override the location.
2019-09-22 18:07:28 -04:00
Eugene Yokota 989136debf Fix -v getting on all the time
Fixes https://github.com/sbt/sbt/issues/5108

I messed up in 91b71b39d3 by initializing the variable to 0.
2019-09-20 10:36:16 -04:00
Eugene Yokota 91a639ff77 Drop -XX:+UseParallelGC
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.
2019-09-17 23:32:06 -04:00
Anil Kumar Myla 2946025d75
Capture double dashes in process args 2019-09-13 19:56:39 -07:00
Tuomas Lappeteläinen 5165b9fd51 universal/bin/sbt: enclose arrays in quotes
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`.
2019-09-13 12:19:39 +03:00
Eugene Yokota b629c92391 Fix -XX:MaxPermSize getting emitted for JDK 11
Fixes sbt/sbt#5031
2019-09-05 23:09:59 -04:00
Eugene Yokota 91b71b39d3 Reproduce JDK 11 warning
Ref https://github.com/sbt/sbt/issues/5031
2019-09-05 22:53:03 -04:00
eugene yokota 10693a800a
Merge pull request #276 from exoego/fix-4833-print-sbtVersion
Add -V|-version to print sbtVersion.
2019-07-19 23:09:36 -04:00
exoego c57c950e92 Improve message since sbtVersion may vary for different projects 2019-07-20 10:42:24 +09:00
exoego 88976ad23f Print only the last line containig sbt version 2019-07-18 16:47:22 +09:00
exoego 16f5b638df Add -V|-version to print sbtVersion. 2019-07-18 16:23:14 +09:00
Christian Lachner 4a61c27538 Add --java-home to sbt.bat
In contrast to the unix version of the sbt launcher, the windows
version lacks the functionality of specifying JAVA_HOME via launch
parameters. This commit adds the missing --java-home parameter to
sbt.bat.
2019-06-30 14:14:57 +02:00
Christian Lachner 53f847d703 Fix JVM_DEBUG in sbt.bat
JVM_DEBUG was broken due to a copy-pasta error in sbt.bat. This
commit corrects the value assignment to the variable and therefore
fixes the problem.
2019-06-30 11:19:18 +02:00
Eugene Yokota 79e13bb39c Reinstate realpath
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>
2019-05-29 17:05:34 -04:00
Eugene Yokota 8015e9f1a9 Remove reference to get_mem_opts 2019-05-22 23:40:10 -04:00
Eugene Yokota bd32204c21 Bump stack size
Ref https://github.com/scala/bug/issues/10870
2019-05-22 23:38:50 -04:00
Eugene Yokota 8a3a7c2b7d Remove MaxMetaspaceSize
Ref https://github.com/sbt/sbt/issues/4686
2019-05-22 23:36:52 -04:00
Eugene Yokota e39a139042 Remove -XX:MaxPermSize out of Windows default
Fixes #223
2019-05-22 17:32:13 -04:00
Eugene Yokota 05ea7eedc5 whitespace fix 2019-05-22 17:22:03 -04:00
eugene yokota a85b486b4c
export repo using Coursier (#267)
export repo using Coursier

Ref https://github.com/sbt/sbt/issues/4661
2019-05-15 10:52:39 -04:00
cia-rana c94af60119 Fix typo in execRunner() 2019-05-10 12:19:28 +09:00
Eugene Yokota 88dc416932 expand -no-colors alias in SBT_OPTS
Fixes #260

This expands the JVM flag aliaes in SBT_OPTS, so `-no-colors` etc would work.
2019-05-09 01:13:45 -04:00
Eugene Yokota ffd80f5144 Delete sbt-launch-lib.bash
The bash files were already merged in #257
2019-05-08 18:33:38 -04:00
Eugene Yokota a47004e01e add options for timings, traces, supershell, and color
`--supershell=*` will pass on to `-Dsbt.supershell=*`.
2019-04-05 11:30:59 -04:00
Eugene Yokota 56f09ef1ec support GNU style double dash options 2019-04-05 10:20:52 -04:00
Eugene Yokota b5cb8b4657 Let -mem take higher precedence
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.
2019-02-22 22:39:18 -05:00
Eugene Yokota 88b8386d15 Update integration test 2019-02-22 22:39:18 -05:00
Eugene Yokota 3f9e91aa4f Default to -Dfile.encoding=UTF-8
Fixes #236
2019-02-22 22:39:18 -05:00
Eugene Yokota 4d772b4745 Concatenate bin/sbt-launch-lib.bash and bin/sbt 2019-02-22 22:39:18 -05:00
Stefan Wachter 9780c6218f unset immediatly exit flag (set +e) in launch script 2019-02-06 17:48:39 +01:00
Eric Peters 2d21c0fd2a Simplify the debug in execRunner and fix the $java_args[@] expansion, fixes #253 2019-02-04 20:38:10 -08:00
fredge 0e8655fd5d fix #248. Move setting JVM's debug option after executing `:copyrt` label, in order to avoid unintended debug string written to `rtext.txt` 2018-12-13 12:25:42 +09:00
Olli Helenius b8b3542339 Fix rsync source path designation in preloaded; fixes #246 2018-12-03 22:13:08 +02:00
Olli Helenius b791da704c
Use `preloaded` from `-sbt-dir` 2018-10-17 13:04:39 +03:00
Eugene Yokota 1d806c9cf3 Revert "Use `preloaded` from `-sbt-dir`"
This reverts commit b8dbe42ece.
2018-10-17 01:57:08 -04:00