Commit Graph

233 Commits

Author SHA1 Message Date
Eugene Yokota d35fe3aeaf rsync flags
Fixes https://github.com/sbt/sbt/issues/5035

Currently `sbt` calls `rsync -a`, which expands to `-rlptgoD`, including `--group` and `--owner` flag that preserves the group and owner of the files. This drops the requirement since we just need to copy files around with the right timestamp.
2019-12-24 21:35:01 -05:00
Eugene Yokota 8d06d14019 Fix rsync check path
Starting sbt 1.3.x we use Coursier to build the preloaded local repo using Maven layout.
2019-12-24 15:12:30 -05:00
eugene yokota 7863bd28f6
Merge pull request #313 from eed3si9n/wip/exec
don't use execRunner to copy rt.jar
2019-12-23 14:48:01 -05:00
Eugene Yokota 5559440739 don't use execRunner to copy rt.jar
Ref https://github.com/sbt/sbt-launcher-package/pull/308
Fixes https://github.com/sbt/sbt/issues/5270

The first time `sbt` runs on JDK 11, it copies the `rt.jar` by calling `execRunner java`.. it seems like the control never comes back from it and `sbt` just ends there. This fixes the problem by not calling `execRunner` for that operation.
2019-12-23 01:50:37 -05:00
Eric Peters 29548d7628 Tweak sbt.bat to parse the -debug arguments first 2019-12-19 16:15:25 -08:00
Edward Samson a362c964de Use exec to launch when not in cygwin
This allows, for example, capturing the correct PID when launching sbt
from within a bash script. The original change from
1a07150560 was to address an issue
specific to cygwin.
2019-11-20 13:57:33 +08:00
Eric Peters 63eabf3c8f Update sbt.bat --script-version to execute early and avoid java check/robocopy bootstrap - Fixes #5220 2019-11-17 08:35:30 -08:00
Michael Hsu 1318c0f594 Add special handling for -XX, -XX:+ and -XX:0 2019-11-11 10:59:06 +08:00
Michael Hsu 34ca729719 Fix Travis CI error: find: '=': No such file or directory 2019-11-10 20:46:55 +08:00
Michael Hsu fe43d0b975 Add special handling for -XX
Fix special handling for -D where > null should be > nul
Fix the problem that only the first option of SBT_OPTS and JAVA_OPTS got processed
2019-11-08 10:23:53 +08:00
Eric Peters 5991e803af Add --sbt-jar test and windows sbt.bat support 2019-10-19 20:29:09 -07:00
Eric Peters 819ee47071 Remove unimplemented --sbt-rc and --sbt-snapshot arguments from docs and scripts 2019-10-19 18:34:13 -07:00
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