Refactoring: common logic extracted and moved to a util class

This commit is contained in:
Andrey Breslav
2013-10-09 20:56:21 +04:00
parent d4a89d04d7
commit 9e0e67d19d
6 changed files with 86 additions and 63 deletions
@@ -50,7 +50,7 @@ public class KotlinCompilerRunner {
OutputItemsCollector collector,
boolean runOutOfProcess
) {
String[] arguments = createArgumentsForJvmCompiler(environment.getOutput(), moduleFile);
String[] arguments = createArgumentsForJvmCompiler(moduleFile);
if (runOutOfProcess) {
runOutOfProcess(K2JVM_COMPILER, arguments, messageCollector, collector, environment);
@@ -106,10 +106,9 @@ public class KotlinCompilerRunner {
}
}
private static String[] createArgumentsForJvmCompiler(File outputDir, File moduleFile) {
private static String[] createArgumentsForJvmCompiler(File moduleFile) {
return new String[]{
"-module", moduleFile.getAbsolutePath(),
"-output", outputDir.getPath(),
"-tags", "-verbose", "-version",
"-notNullAssertions", "-notNullParamAssertions",
"-noStdlib", "-noJdkAnnotations", "-noJdk"};