Support classpath argument when running scripts using the -script flag

Signed-off-by: Isak Karlsson <isak-kar@dsv.su.se>
This commit is contained in:
Isak Karlsson
2015-03-11 15:00:25 +01:00
committed by Alexander Udalov
parent f632a90741
commit efae5c05a1
3 changed files with 15 additions and 8 deletions
@@ -91,7 +91,7 @@ public class ScriptTest {
try {
JetScriptDefinitionProvider.getInstance(environment.getProject()).markFileAsScript(environment.getSourceFiles().get(0));
return KotlinToJVMBytecodeCompiler.compileScript(paths, environment);
return KotlinToJVMBytecodeCompiler.compileScript(configuration, paths, environment);
}
catch (CompilationException e) {
messageCollector.report(CompilerMessageSeverity.EXCEPTION, OutputMessageUtil.renderException(e),