mirror of
https://github.com/sbt/sbt.git
synced 2026-09-04 08:45:56 +02:00
Previously, it was not possible to use `sbt.ForkMain` as a library since * it called `System.exit`, shutting down the library client JVM process. * it assumed that it was always running in the same classloader as where the test suites it was running causing "class not found: my.test.Suite" if the `ForkMain` class lives in a classloader above the test suite classes. This commit adds a new `main(Array[String],ClassLoader])` entrypoint that allows clients to call `ForkMain` as a library.