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:
+1
-1
@@ -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')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user