fix issue with Java source files that don't generate classes always being recompiled

This commit is contained in:
Mark Harrah 2011-06-14 19:32:36 -04:00
parent 62c580024d
commit 8e32a52250
1 changed files with 6 additions and 0 deletions

View File

@ -82,6 +82,12 @@ private[sbt] object Analyze
readAPI(source, classFiles.toSeq.flatMap(c => load(c.className, Some("Error reading API from class file") )))
analysis.endSource(source)
}
for( source <- sources filterNot sourceToClassFiles.keySet ) {
analysis.beginSource(source)
analysis.api(source, new xsbti.api.SourceAPI(Array(), Array()))
analysis.endSource(source)
}
}
compile