Always call after compile hook

KT-8487
This commit is contained in:
Alexey Tsvetkov
2016-02-19 15:40:25 +03:00
parent 402436f3eb
commit 7dc35aa343
@@ -101,8 +101,13 @@ abstract class AbstractKotlinCompile<T : CommonCompilerArguments>() : AbstractCo
compilerCalled = true
val cachesDir = File(project.buildDir, "kotlin-caches")
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() }