@@ -383,16 +383,13 @@ task loadTenant(group: ofbizServer, description: 'Load data using tenantId') {
383
383
createOfbizCommandTask(' executeLoadTenant' , [], jvmArguments, false )
384
384
385
385
if (project. hasProperty(' tenantId' )) {
386
- executeLoadTenant. args ' --load-data'
387
- executeLoadTenant. args " delegator=default#${ tenantId} "
386
+ executeLoadTenant. args ' --load-data' , " delegator=default#${ tenantId} "
388
387
}
389
388
if (project. hasProperty(' tenantReaders' )) {
390
- executeLoadTenant. args ' --load-data'
391
- executeLoadTenant. args " readers=${ tenantReaders} "
389
+ executeLoadTenant. args ' --load-data' , " readers=${ tenantReaders} "
392
390
}
393
391
if (project. hasProperty(' tenantComponent' )) {
394
- executeLoadTenant. args ' --load-data'
395
- executeLoadTenant. args " component=${ tenantComponent} "
392
+ executeLoadTenant. args ' --load-data' , " component=${ tenantComponent} "
396
393
}
397
394
398
395
executeLoadTenant. doFirst {
@@ -472,17 +469,14 @@ task createTenant(group: ofbizServer, description: 'Create a new tenant in your
472
469
* because we are in the configuration phase. We cannot
473
470
* set the parameters at the execution phase. */
474
471
if (project. hasProperty(' tenantId' )) {
475
- loadTenantData. args ' --load-data'
476
- loadTenantData. args " delegator=default#${ tenantId} "
477
-
478
- loadTenantAdminUserLogin. args ' --load-data'
479
- loadTenantAdminUserLogin. args " delegator=default#${ tenantId} "
480
- loadTenantAdminUserLogin. args ' --load-data'
481
- loadTenantAdminUserLogin. args " file=${ rootDir} /runtime/tmp/tmpFilteredUserLogin.xml"
472
+ loadTenantData. args ' --load-data' , " delegator=default#${ tenantId} "
473
+ loadTenantAdminUserLogin. args(
474
+ ' --load-data' , " delegator=default#${ tenantId} " ,
475
+ ' --load-data' , " file=${ rootDir} /runtime/tmp/tmpFilteredUserLogin.xml"
476
+ )
482
477
}
483
478
if (project. hasProperty(' tenantReaders' )) {
484
- loadTenantData. args ' --load-data'
485
- loadTenantData. args " readers=${ tenantReaders} "
479
+ loadTenantData. args ' --load-data' , " readers=${ tenantReaders} "
486
480
}
487
481
488
482
dependsOn(loadTenantAdminUserLogin)
@@ -996,9 +990,7 @@ def createOfbizCommandTask(taskName, arguments, jvmArguments, isDebugMode) {
996
990
debug = isDebugMode
997
991
classpath = files(ofbizJarName)
998
992
main = ofbizMainClass
999
- arguments. each { argument ->
1000
- args argument
1001
- }
993
+ args arguments
1002
994
1003
995
if (taskName ==~ / ^ofbiz.*--test.*/
1004
996
|| taskName ==~ / ^ofbiz.*-t.*/ ) {
0 commit comments