Fix the build. doh.

This commit is contained in:
Ben Gruver 2012-10-27 19:23:58 -07:00
parent 3079b05e9a
commit 06bff592f8

View File

@ -52,7 +52,9 @@ sourceSets.test.java.srcDir testAntlrOutput
idea {
module {
excludeDirs -= buildDir
excludeDirs.addAll(buildDir.listFiles())
if (buildDir.exists()) {
excludeDirs.addAll(buildDir.listFiles())
}
for (sourceDir in (sourceDirs + testSourceDirs)) {
excludeDirs.remove(sourceDir);
while ((sourceDir = sourceDir.getParentFile()) != null) {