From 06bff592f81309b398831aa5bc568c910dc7c938 Mon Sep 17 00:00:00 2001 From: Ben Gruver Date: Sat, 27 Oct 2012 19:23:58 -0700 Subject: [PATCH] Fix the build. doh. --- smali/build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/smali/build.gradle b/smali/build.gradle index a4cf5b88..1be1c514 100644 --- a/smali/build.gradle +++ b/smali/build.gradle @@ -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) {