refactored std.* package to be kotlin.*. Due to KT-1381 I had to move the functions from kotlin.test into the stdlib for now (I made them not depend on JUnit for now)
This commit is contained in:
@@ -56,6 +56,9 @@ public class KotlinCompiler {
|
||||
@Argument(value = "module", description = "module to compile")
|
||||
public String module;
|
||||
|
||||
@Argument(value = "classpath", description = "classpath to use when compiling")
|
||||
public String classpath;
|
||||
|
||||
@Argument(value = "includeRuntime", description = "include Kotlin runtime in to resulting jar")
|
||||
public boolean includeRuntime;
|
||||
|
||||
@@ -140,6 +143,10 @@ public class KotlinCompiler {
|
||||
environment.setStdlib(arguments.stdlib);
|
||||
}
|
||||
|
||||
if (arguments.classpath != null) {
|
||||
environment.addToClasspath(arguments.classpath);
|
||||
}
|
||||
|
||||
boolean ok;
|
||||
if (arguments.module != null) {
|
||||
ok = environment.compileModuleScript(arguments.module, arguments.jar, arguments.outputDir, arguments.includeRuntime);
|
||||
|
||||
Reference in New Issue
Block a user