svn commit: r1754773 - /ofbiz/trunk/build.gradle

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1754773 - /ofbiz/trunk/build.gradle

Taher Alkhateeb
Author: taher
Date: Mon Aug  1 16:12:02 2016
New Revision: 1754773

URL: http://svn.apache.org/viewvc?rev=1754773&view=rev
Log:
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

Modified:
    ofbiz/trunk/build.gradle

Modified: ofbiz/trunk/build.gradle
URL: http://svn.apache.org/viewvc/ofbiz/trunk/build.gradle?rev=1754773&r1=1754772&r2=1754773&view=diff
==============================================================================
--- ofbiz/trunk/build.gradle (original)
+++ ofbiz/trunk/build.gradle Mon Aug  1 16:12:02 2016
@@ -384,7 +384,7 @@ task loadTenant(group: ofbizServer, desc
         executeLoadTenant.args "component=${tenantComponent}"
     }
 
-    doLast {
+    executeLoadTenant.doFirst {
         if(!project.hasProperty('tenantId')) {
             throw new GradleException('Missing project property tenantId')
         }