am 2247b043: DO NOT MERGE: idegen: Skip directories named *.java when parsing source.

* commit '2247b043df5086e285ec4192a8d79a3d9b6c1045':
  DO NOT MERGE: idegen: Skip directories named *.java when parsing source.
This commit is contained in:
Sky Faber
2014-10-24 18:26:34 +00:00
committed by Android Git Automerger

View File

@@ -132,7 +132,7 @@ public class Configuration {
String path = file.getPath().substring(2);
// Keep track of source roots for .java files.
if (path.endsWith(".java")) {
if (path.endsWith(".java") && !file.isDirectory()) {
if (firstJavaFile) {
// Only parse one .java file per directory.
firstJavaFile = false;