[jira] [Comment Edited] (OFBIZ-7773) createTenant tasks does not ask for parameters (should we?)

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

[jira] [Comment Edited] (OFBIZ-7773) createTenant tasks does not ask for parameters (should we?)

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-7773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15369570#comment-15369570 ]

Jacques Le Roux edited comment on OFBIZ-7773 at 7/10/16 10:44 AM:
------------------------------------------------------------------

Pierre, did you read the README.MD file?
{quote}
create a new tenant

Create a new tenant in your environment, create the delegator, load
initial data with admin-user and password (needs multitenant=Y in
general.properties). The following project parameters are passed:

- tenantId: mandatory
- tenantName: mandatory, name of the tenant
- domainName: optional, default is org.ofbiz
- tenantReaders: optional, default value is seed,seed-initial,demo
- dbPlatform: optional, D(Derby), M(MySQL), O(Oracle), P(PostgreSQL) (default D)
- dbIp: optional, ip address of the database
- dbUser: optional, username of the database
- dbPassword: optional, password of the database

`gradlew createTenant -PtenantId=mytenant -PtenantName="My Name"`

`gradlew createTenant -PtenantId=mytenant -PtenantName="My Name" -PdomainName=com.example -PtenantReaders=seed,seed-initial,ext -PdbPlatform=M -PdbIp=127.0.0.1 -PdbUser=mydbuser -PdbPassword=mydbpass`

If run successfully, the system creates a new tenant having:

- delegator: default#${tenandId} (e.g. default#mytenant)
- admin user: ${tenantId}-admin (e.g. mytenant-admin)
- admin user password: ofbiz
{quote}

It seems like unlike the Ant target currently it does not ask you interactively for parameters.

You could contribute, a good way to learn Gradle ;) I change the title...


was (Author: jacques.le.roux):
Pierre, did you read the README.MD file?
{quote}
---- Create a custom component in hot-deploy
`gradlew createComponent -PcomponentName=Custom -PcomponentResourceName=Custom -PwebappName=customweb
PbasePermission=OFBTOOLS,CUSTOM_SECURITY`
{quote}

It seems like unlike the Ant target currently it does not ask you interactively for parameters.

You could contribute, a good way to learn Gradle ;) I change the title...

> createTenant tasks does not ask for parameters (should we?)
> -----------------------------------------------------------
>
>                 Key: OFBIZ-7773
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7773
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Pierre Smits
>            Priority: Blocker
>
> When executing the gradle createTenant tasks, the following error is thrown:
> {code}
> FAILURE: Build failed with an exception.
> * Where:
> Build file '/Users/pierre/dev/ofbiz/ofbiz-gradle/build.gradle' line: 328
> * What went wrong:
> Execution failed for task ':prepareAndValidateTenantArguments'.
> > Project property tenantId is missing
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
> BUILD FAILED
> {code}
> The function/process is missing the guided-through approach that ./ant create-tenant has.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)