Avoid having -d and -module set at the same time

#KT-14619 fixed
This commit is contained in:
Alexey Tsvetkov
2017-02-03 17:37:50 +03:00
parent 667c00e3ed
commit 6e0f3b7f1f
5 changed files with 43 additions and 3 deletions
@@ -425,6 +425,8 @@ class IncrementalJvmCompilerRunner(
javaSourceRoots = javaSourceRoots,
classpath = classpath,
friendDirs = listOf())
val destination = args.destination
args.destination = null
args.module = moduleFile.absolutePath
val outputItemCollector = OutputItemsCollectorImpl()
@Suppress("NAME_SHADOWING")
@@ -446,6 +448,7 @@ class IncrementalJvmCompilerRunner(
return CompileChangedResults(exitCode, generatedFiles)
}
finally {
args.destination = destination
moduleFile.delete()
}
}