Add script-templates option to compiler options, fix templates and definitions loading in compiler

This commit is contained in:
Ilya Chernikov
2016-08-08 15:48:30 +02:00
parent 4702842afd
commit 6c0b78fb01
2 changed files with 74 additions and 4 deletions
@@ -51,6 +51,10 @@ public class K2JVMCompilerArguments extends CommonCompilerArguments {
@Argument(value = "script", description = "Evaluate the script file")
public boolean script;
@Argument(value = "script-templates", description = "Script definition template classes")
@ValueDescription("<comma separated class names>")
public String scriptTemplates;
@Argument(value = "kotlin-home", description = "Path to Kotlin compiler home directory, used for runtime libraries discovery")
@ValueDescription("<path>")
public String kotlinHome;