Commit Graph

28 Commits

Author SHA1 Message Date
Claudio Bley eb38ac57e7 Split up integration tests
Separate them into those that do not need to run a JVM, using
the newly added `java` script, and those that really need to run
the sbt-launch.jar
2020-10-01 21:23:45 +02:00
Claudio Bley 234273db41 Handle `--ivy` option in `SBT_OPTS` too
Fixes sbt/sbt#5885
2020-10-01 21:21:03 +02:00
Claudio Bley a7c034aa99 Fix handling of `--no-share` option
Using `--no-share` as a command line option resulted in a single additional
argument added to the java command:

`-Dsbt.global.base=project/.sbtboot -Dsbt.boot.directory=project/.boot -Dsbt.ivy.home=project/.ivy`

Actually, three separate arguments need to be added.
2020-10-01 21:21:03 +02:00
Eugene Yokota 2def5ef636 sbtn support
Ref https://github.com/sbt/sbt/issues/5665

This implements `--client` option to use `sbt` script as the sbtn runner. The build user can also set the env variable `SBT_NATIVE_CLIENT` to `true`.

The script will attempt to parse `project/build.properties` and use sbtn only when it's sbt 1.4 or above.
2020-09-20 17:13:04 -04:00
Eugene Yokota 2514a25013 Bump 1.3 version used for testing 2020-09-20 13:13:19 -04:00
Henri Cook 1bc60adbe7 Tidy up -debug in SBT_OPTS for submission 2020-06-19 17:38:23 +01:00
Henri Cook 4872ddf3ef Add tests for supporting -debug flag in SBT_OPTSs 2020-05-25 19:39:54 +01:00
abe 2242091012 Add test for --jvm-debug 2020-03-04 12:05:41 +09:00
Eugene Yokota 1a2ca2610b Fix unintended glob expansion
Fixes https://github.com/sbt/sbt/issues/5343
2020-01-08 10:10:09 -05:00
Eugene Yokota c11040c968 Fixes quoted arugment with whitespace
Ref https://github.com/sbt/sbt/issues/5343
Fixes https://github.com/sbt/sbt/issues/5210
2020-01-04 15:05:13 -05:00
Eugene Yokota 0ce5630633 refactor sbtProcess to use vararg
This allows passing whitespace as part of an argument.
2019-12-28 02:36:53 -05: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 cb19634350 Fix tests for -XX, then add test for -XX:+ and -XX:- 2019-11-11 10:56:10 +08:00
Michael Hsu c742f66dd8 Add tests for -XX and mutiple -D 2019-11-09 22:44:13 +08:00
Eric Peters 978ea39676 Make the script version regex test more windows-friendly 2019-10-19 21:01:03 -07:00
Eric Peters 5991e803af Add --sbt-jar test and windows sbt.bat support 2019-10-19 20:29:09 -07:00
Eric Peters 6ebad1cffc Add a test for -D arguments (e.g. -Dsbt.supershell=false) 2019-10-16 10:49:59 -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
Eric Peters 56cdfcaa90 Add --numeric-version, --script-version, and update --version to print both versions 2019-09-24 16:55:57 -07:00
Anil Kumar Myla 8affb84ff7
Add integration tests 2019-09-13 23:11:48 -07:00
exoego c57c950e92 Improve message since sbtVersion may vary for different projects 2019-07-20 10:42:24 +09:00
Eugene Yokota 3cd702af9f Windows 2019-07-16 17:38:58 -04: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 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