Minor: run javac-mode compileJava after destroying of generation state
Not very important but seems more logical
This commit is contained in:
+3
-3
@@ -210,6 +210,9 @@ object KotlinToJVMBytecodeCompiler {
|
|||||||
val mainClassProvider = if (outputs.size == 1) MainClassProvider(state, environment) else null
|
val mainClassProvider = if (outputs.size == 1) MainClassProvider(state, environment) else null
|
||||||
writeOutput(state.configuration, state.factory, mainClassProvider)
|
writeOutput(state.configuration, state.factory, mainClassProvider)
|
||||||
}
|
}
|
||||||
|
} finally {
|
||||||
|
outputs.values.forEach(GenerationState::destroy)
|
||||||
|
}
|
||||||
|
|
||||||
if (projectConfiguration.getBoolean(JVMConfigurationKeys.COMPILE_JAVA)) {
|
if (projectConfiguration.getBoolean(JVMConfigurationKeys.COMPILE_JAVA)) {
|
||||||
val singleModule = chunk.singleOrNull()
|
val singleModule = chunk.singleOrNull()
|
||||||
@@ -228,9 +231,6 @@ object KotlinToJVMBytecodeCompiler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return true
|
return true
|
||||||
} finally {
|
|
||||||
outputs.values.forEach(GenerationState::destroy)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
internal fun configureSourceRoots(configuration: CompilerConfiguration, chunk: List<Module>, buildFile: File? = null) {
|
internal fun configureSourceRoots(configuration: CompilerConfiguration, chunk: List<Module>, buildFile: File? = null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user