Warn if the generated source destination (for APT) was modified

This commit is contained in:
Yan Zhulanow
2015-05-20 19:28:25 +03:00
parent 7a2f3bf1ea
commit 0363b6b911
@@ -135,6 +135,9 @@ public class AnnotationProcessingManager(private val task: KotlinCompile) {
val argIndex = compilerArgs.indexOfFirst { "-s" == it }
if (argIndex >= 0 && compilerArgs.size() > (argIndex + 1)) {
task.getLogger().warn("Destination for generated sources was modified by kapt. " +
"Previous value = " + compilerArgs[argIndex + 1])
compilerArgs[argIndex + 1] = outputDir.getAbsolutePath()
}
else {