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
This commit is contained in:
Taher A. Alkhateeb
2016-08-01 16:12:02 +00:00
parent ac3cccbc61
commit dc5f3c92fb
+1 -1
View File
@@ -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')
}