sbt/sbt/src
Ethan Atkins 6ba3afbef7 Fix settings in ScriptMain
It was reported in https://github.com/sbt/sbt/issues/4973 that the
scalaVersion setting was not being correctly set in a script running
with ScriptMain using 1.3.0-RC4. Using git bisect, I found that the
issue was introduced in
73cfd7c8bd.
That commit manipulates the classloaders passed in by the launcher, but
only for the xMain entry point. I found that the script ran correctly if
I updated the classloader for ScriptedMain as well.

After these changes, the example script in #4973 correctly prints 2.13.0
for the scala version with a locally published sbt.

Bonus: rename xMainImpl object xMain. It was private[sbt] anyway.
2019-08-26 21:15:43 -07:00
..
main/scala Add nio path filter settings 2019-08-09 12:18:22 -07:00
repo-override-test mark dependency-management/default-resolvers pending 2019-04-26 12:27:38 -04:00
sbt-test Fix clean performance 2019-08-22 13:01:56 -07:00
server-test Revert "Merge pull request #4930 from eatkins/2.12.9" 2019-08-08 11:09:29 -07:00
test/scala Fix settings in ScriptMain 2019-08-26 21:15:43 -07:00