Always call after compile hook
KT-8487
This commit is contained in:
+7
-2
@@ -101,8 +101,13 @@ abstract class AbstractKotlinCompile<T : CommonCompilerArguments>() : AbstractCo
|
|||||||
compilerCalled = true
|
compilerCalled = true
|
||||||
val cachesDir = File(project.buildDir, "kotlin-caches")
|
val cachesDir = File(project.buildDir, "kotlin-caches")
|
||||||
beforeCompileHook(args)
|
beforeCompileHook(args)
|
||||||
callCompiler(args, sources, inputs.isIncremental, modified, removed, cachesDir)
|
|
||||||
afterCompileHook(args)
|
try {
|
||||||
|
callCompiler(args, sources, inputs.isIncremental, modified, removed, cachesDir)
|
||||||
|
}
|
||||||
|
finally {
|
||||||
|
afterCompileHook(args)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getKotlinSources(): List<File> = (getSource() as Iterable<File>).filter { it.isKotlinFile() }
|
private fun getKotlinSources(): List<File> = (getSource() as Iterable<File>).filter { it.isKotlinFile() }
|
||||||
|
|||||||
Reference in New Issue
Block a user