Fixed redeclaration from incremental compilation. Added workaround for JPS bug.

This commit is contained in:
Evgeny Gerashchenko
2014-08-27 18:15:05 +04:00
parent 76864a3eb0
commit 3226093fa6
14 changed files with 119 additions and 6 deletions
@@ -49,6 +49,11 @@ public class KotlinSourceFileCollector {
dirtyFilesHolder.processDirtyFiles(new FileProcessor<JavaSourceRootDescriptor, ModuleBuildTarget>() {
@Override
public boolean apply(ModuleBuildTarget target, File file, JavaSourceRootDescriptor root) throws IOException {
//TODO this is a workaround for bug in JPS: the latter erroneously calls process with invalid parameters
if (!root.getTarget().equals(target)) {
return true;
}
if (isKotlinSourceFile(file)) {
result.putValue(target, file);
}