[jira] [Commented] (OFBIZ-7808) Add Gradle Interactive tasks

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

[jira] [Commented] (OFBIZ-7808) Add Gradle Interactive tasks

Nicolas Malin (Jira)

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

Taher Alkhateeb commented on OFBIZ-7808:
----------------------------------------

I don't see why the data readers should be considered mandatory. They are optional in "ofbiz --load-data", they are ommitted in loadDefault, they are optional on loadTenant and they are optional in many such contexts.

the dpIp, dpUser and dbPassword are only mandatory if you are switching to a non-embedded database (derby default) which means MySQL, Postgres, Oracle.

Now, If a user was able to tweak the entityengine.xml, create a database and a user with proper privileges, and tweak whatever else needs tweaking, is that user not capable of typing: -PdbUser=userName -PdbPassword=password? I doubt it.

So, for a beginner user, trying out the system to get familiar, the commands really become:
- ./gradlew createTenant -PtenantId=mytenant
- ./gradlew createComponent -PcomponentName=mycomponent
- ./gradlew loadAdminUserLogin -PuserLoginId=myuser

You can even have shortcut forms:
- ./gradlew crT -PtenantId=mytenant
- ./gradlew crC -PcomponentName=mycomponent
- ./gradlew lAUL -PuserLoginId=myuser

> Add Gradle Interactive tasks
> ----------------------------
>
>                 Key: OFBIZ-7808
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7808
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Jacques Le Roux
>            Assignee: Jacques Le Roux
>             Fix For: Upcoming Branch
>
>
> As explained in OFBIZ-7772 and OFBIZ-7773 we want to test the possiblity to add Gradle Interactive tasks using https://github.com/tkruse/gradle-groovysh-plugin
> The idea is to have a good general solution to allow users to not feel a funtional regression with the 3 interactive tasks we had before, namely
> create-component
> create-admin-user-login
> create-tenant and all tasks it depends on



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