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

Change-Id: I8a6700ebcc198851b80de4832a43d147dc887f3a
(cherry picked from commit e83d6400fb)
This commit is contained in:
Sky Faber
2014-07-08 11:26:53 -07:00
committed by Etan Cohen
parent 7876b306a2
commit 2247b043df

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;