From 5b660670d2369eb9f53f39f6c05c3b8a6aeb7379 Mon Sep 17 00:00:00 2001 From: Graeme Rocher Date: Fri, 4 Sep 2015 16:42:19 +0200 Subject: [PATCH] fix MPE --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index c711d8eb974..0b19b98296b 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ ext.checkOutDir = "${buildDir.path}/checkout" ext.outputDir = "${buildDir.path}/docs" ext.githubBranch = "3.0.x" -ext.explicitGrailsHome = System.getProperty("grails.home") ?: project.getProperty("grails.home") +ext.explicitGrailsHome = System.getProperty("grails.home") ?: (project.hasProperty('grails.home') ? project.getProperty("grails.home") : null) ext.grailsHome = explicitGrailsHome ? file(explicitGrailsHome).absolutePath : "$checkOutDir/grails-src" configurations {