minor refactor to make KotlinCompiler easier to extend (to make command line based compiler tools with configurable plugins)

This commit is contained in:
James Strachan
2012-03-08 08:05:47 +00:00
parent 44b2fec726
commit f43fd0f4f6
3 changed files with 30 additions and 26 deletions
@@ -99,7 +99,7 @@ public class ForTestCompileStdlib {
private static void compileKotlinPartOfStdlib(File destdir) throws IOException {
// lame
KotlinCompiler.exec(System.err, "-output", destdir.getPath(), "-src", "./libraries/stdlib/src", "-stdlib", destdir.getAbsolutePath());
new KotlinCompiler().exec(System.err, "-output", destdir.getPath(), "-src", "./libraries/stdlib/src", "-stdlib", destdir.getAbsolutePath());
}
private static List<File> javaFilesInDir(File dir) {