From dc5f3c92fbea80bce71dcd6cd5f80f428f5e49aa Mon Sep 17 00:00:00 2001 From: "Taher A. Alkhateeb" Date: Mon, 1 Aug 2016 16:12:02 +0000 Subject: [PATCH] Fix a bug in the gradle task loadTenant - OFBIZ-7534 When running loadTenant task without passing the tenantId property then gradle would run the task to full and only complain of missing property at the end. This fix ensures that the task fails before running anything if the tenantId is missing git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1754773 13f79535-47bb-0310-9956-ffa450edef68 --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 41e16693b9..4d4059b5c6 100644 --- a/build.gradle +++ b/build.gradle @@ -384,7 +384,7 @@ task loadTenant(group: ofbizServer, description: 'Load data using tenantId') { executeLoadTenant.args "component=${tenantComponent}" } - doLast { + executeLoadTenant.doFirst { if(!project.hasProperty('tenantId')) { throw new GradleException('Missing project property tenantId') }