Refactor script-util context tools to simplify its usage in the new scripting

This commit is contained in:
Ilya Chernikov
2018-03-23 16:03:19 +01:00
parent 4742d0a034
commit d50798c4cf
4 changed files with 73 additions and 28 deletions
@@ -24,7 +24,7 @@ class ScriptUtilContextTests {
@Test
fun testExplicitScriptClasspath() {
withSysProp(KOTLIN_SCRIPT_CLASSPATH_PROPERTY, "a:b:c") {
val classpath = scriptCompilationClasspathFromContext()
val classpath = scriptCompilationClasspathFromContextOrStlib(wholeClasspath = true)
Assert.assertEquals("a:b:c", classpath.joinToString(":"))
}
}