idegen: Skip directories named *.java when parsing source.

Change-Id: I8a6700ebcc198851b80de4832a43d147dc887f3a
This commit is contained in:
Sky Faber
2014-07-08 11:26:53 -07:00
parent 70d7a611ba
commit e83d6400fb

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;