Commit Graph

687 Commits

Author SHA1 Message Date
eugene yokota 8b67a07007
Merge pull request #349 from eed3si9n/wip/export-rt
Remove export-rt
2021-03-22 04:39:18 -04:00
Eugene Yokota 73f473efce Remove export-rt
The feature of export-rt is now folded into sbt-launcher
2021-03-22 04:19:27 -04:00
Eugene Yokota 729197418c Update launcher URL, take 2 2021-03-07 19:24:05 -05:00
Eugene Yokota 0e15d56291 Update launcher URL 2021-03-07 19:10:07 -05:00
Eugene Yokota 635f05f2f3 sbtn 1.4.7 2021-01-31 00:43:23 -05:00
eugene yokota b05971f941
Merge pull request #347 from flomebul/patch-1
Update sbt for cygwin environment support
2021-01-17 15:05:27 -05:00
Luc Henninger 4c9b315831
Update sbt for cygwin environment support
See issue #6260
2021-01-17 19:18:09 +01:00
eugene yokota 717f7a6776
Merge pull request #346 from ericdotdata/issue/5181-xss-mem-override
Fix #5181 - add -Xss to java_options ignore
2020-12-29 17:58:14 -05:00
Eric Peters cab425afe7 Refactor ScriptTest a bit and add tests for -Xss script launcher params 2020-12-29 14:45:36 -08:00
Eric Peters bf34bad1a6 Fix #5181 - add -Xss to java_options ignore 2020-12-29 14:10:02 -08:00
Eugene Yokota 04eac0421b sbtn 1.4.5 2020-12-14 01:32:32 -05:00
eugene yokota f7507bde59
Merge pull request #345 from eed3si9n/wip/sbtn
sbtn 1.4.4
2020-11-22 20:32:24 -05:00
Eugene Yokota 44ba8e7dee sbtn 1.4.4 2020-11-22 20:19:16 -05:00
eugene yokota 8ff3a4b1e7
Merge pull request #344 from eatkins/windows-sbtopts
Remove leading -J from .sbtopts lines
2020-11-19 14:14:13 -05:00
Ethan Atkins abc929687e Remove leading -J from .sbtopts lines
The windows batch script for sbt does not strip -J from lines in the
.sbtopts file, which can cause sbt to fail to run since they end up
getting passed in as unknown vm arguments.
2020-11-19 10:19:15 -08:00
eugene yokota f4ac3d1cf3
Merge pull request #339 from eatkins/remove-add-default-memory
Remove extra addDefaultMemory
2020-11-18 11:32:39 -05:00
Ethan Atkins 06c1f6ce97 Remove extra addDefaultMemory
I think this was inadvertently left out of
75257e759b. Prior to removing this,
`sbt --client exit` took about 200ms on my computer compared to about
50ms for sbtn. The sbt --client result dropped to about 80ms after this
change.
2020-11-18 08:19:29 -08:00
eugene yokota 4b1c479525
Merge pull request #343 from eed3si9n/wip/build
Migrate to GitHub Actions
2020-11-09 12:45:09 -05:00
Eugene Yokota 39a2492ae7 Python 3.7 2020-11-09 12:34:59 -05:00
Eugene Yokota e8eda76278 Downgrade integration test to use sbt 1.3.13 2020-11-09 11:58:06 -05:00
Eugene Yokota 0939c1c78e Comment out sbt --client test 2020-11-09 11:46:36 -05:00
Eugene Yokota 86f9061fae Migrate to GitHub Actions 2020-11-09 01:51:21 -05:00
eugene yokota 3faeccaeb5
Merge pull request #342 from eed3si9n/wip/bogusbuild
Preparatory GitHub Actions
2020-11-09 01:24:40 -05:00
Eugene Yokota 1d957bdef2 Preparatory GitHub Actions 2020-11-09 01:17:07 -05:00
eugene yokota f967c8f0b2
Merge pull request #341 from eed3si9n/wip/sbtn_debian
Don't include sbtn into Debian or RPM
2020-11-04 23:12:10 -05:00
Eugene Yokota 8511c4bbbe Don't include sbtn into Debian or RPM
Ref https://github.com/sbt/sbt/issues/6053
2020-11-04 22:28:18 -05:00
eugene yokota 9be42a8ead
Merge pull request #340 from eed3si9n/wip/sbtn_bump
sbtn 1.4.2
2020-11-01 23:43:07 -05:00
Eugene Yokota 93af7b9cc9 sbtn 1.4.2 2020-11-01 23:27:19 -05:00
eugene yokota b6e826440a
Merge pull request #338 from eatkins/space-fix
Replace spaces with %20 in path names
2020-10-26 00:07:27 -04:00
Ethan Atkins 19dc8d1bfd Replace spaces with %20 in path names
If there are strings in the path name, the sbt-script argument will be
interpreted as multiple arguments. The thin client also needs to be
updated to handle %20 in path names.
2020-10-25 19:06:25 -07:00
eugene yokota 1b88d41f83
Merge pull request #337 from eatkins/windows-fixes
Miscellaneous fixes to windows batch script
2020-10-25 21:29:58 -04:00
Ethan Atkins 9ffddfbd25 Pass the sanitized args to thin client in sbt.bat
Passing the unsanitized arguments was problematic in sbt.bat because it
caused sbt --client to run sbtn with --client as a parameter. This
caused sbtn to launch sbt with the --client which caused a loop. This
manifested as a weird error about not being able to get the console
mode.
2020-10-25 17:11:37 -07:00
Ethan Atkins ff638e36bc Set sbt script parameter for sbt.bat
This brings parity with the bash script.
2020-10-25 17:10:55 -07:00
Ethan Atkins 3aa2f5eb75 Pass verbose flag to sbtn when running sbt --client 2020-10-25 17:10:40 -07:00
eugene yokota 87bd4027b0
Merge pull request #336 from eatkins/sbt-script
Set sbt script when running sbtn
2020-10-24 17:49:14 -04:00
Ethan Atkins d4156d3ed7 Set sbt script when running sbtn
There are scenarios where sbt is not on the path and may be invoked as
an absolute path from the shell. When this is the case, sbtn will fail
to start a server because of the missing sbt on the path. We can fix
this by setting the --sbt-script parameter.
2020-10-24 12:40:26 -07:00
eugene yokota fb5961427e
Merge pull request #334 from eed3si9n/wip/java_version
Fix sbt --client slowness
2020-10-19 15:48:50 -04:00
Eugene Yokota 75257e759b Fix sbt --client slowness
Before:

```
$ time sbt --client exit
[info] entering *experimental* thin client - BEEP WHIRR
[info] terminate the server with `shutdown`
sbt --client exit  0.16s user 0.15s system 101% cpu 0.303 total
```

sbt --client was running around 303ms (median out of 5) on my machine.

```
$ time sbtn exit
[info] entering *experimental* thin client - BEEP WHIRR
[info] terminate the server with `shutdown`
sbtn exit  0.05s user 0.05s system 112% cpu 0.085 total
```

On the other hand, sbtn ran in 85ms (median out of 5).

After:

```
$ time ~/work/sbt-modules/sbt-launcher-package/target/universal/stage/bin/sbt --client exit
[info] entering *experimental* thin client - BEEP WHIRR
[info] terminate the server with `shutdown`
~/work/sbt-modules/sbt-launcher-package/target/universal/stage/bin/sbt  exit  0.06s user 0.08s system 111% cpu 0.127 total
```

By delaying the java version detection, I got it down to 127ms.
2020-10-19 15:13:23 -04:00
Eugene Yokota 8237eff942 sbtn 1.4.0 2020-10-04 20:13:49 -04:00
eugene yokota d9a9a705a0
Merge pull request #332 from avdv/fix-launcher-option-handling
Fix launcher option handling
2020-10-01 21:26:59 -04:00
Claudio Bley 57cf5231ab CI: piccolo.link is broken, switch to direct github link
It returns a 500 internal server error.
2020-10-01 21:23:45 +02:00
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 a108c46851 Add `java` mock scripts to avoid running a JVM during tests
The script simply prints out each argument in an unambigous form on a single
line and handles to the `--version` option.

For windows, add `java.cmd` script which simply calls the former `java` script.
2020-10-01 21:21:03 +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 f170d29481
Merge pull request #333 from eed3si9n/wip/rtexport
Fix fetching of RT Export
2020-09-26 07:29:44 -04:00
Eugene Yokota 0e459fc9f3 Resolve Coursier first? 2020-09-26 07:13:49 -04:00
Eugene Yokota 55cd02be03 Fix fetching of RT Export
Previously it was depending on the side effect of export repo.
This doesn't work when we don't construct offline installer.
2020-09-26 07:02:00 -04:00
eugene yokota ea440e5987
Merge pull request #331 from eed3si9n/wip/bump
Update sbtn
2020-09-23 15:16:50 -04:00
Eugene Yokota adbd541c97 Update sbtn 2020-09-23 02:53:13 -04:00