Re: How to Create Plugin without loadDefault

2018-11-27 Thread Pierre Smits
Hi,

After you have (re)build and started your OFBiz implementation you don't
need to (re)build and start it again loading all data (with ./gradlew
loadDefault) unit you make changes to your java code or service
definitions. You can make changes to your screens, forms, FTL and Groovy
scripts without any rebuild and restart. You can then load (import) your
data through functionalities in the Webtools component.

Best regards,

Pierre Smits

*Apache Trafodion , Vice President*
*Apache Directory , PMC Member*
Apache Incubator , committer
*Apache OFBiz , contributor (without privileges)
since 2008*
Apache Steve , committer


On Tue, Nov 27, 2018 at 1:10 PM Schumann Ye 
wrote:

> Dear Gurus, dear Rishi, dear Jacques,
>
> I’ve got a quick and easy question for you guys.
> How can I create Plugin (as shown in step 1 below) but without running
> step 2 below in order to show the newly created plugin in our production
> environment?
> Step 1: gradlew createPlugin -PpluginId=quality
> Step 2: gradlew loadDefault
>
> As I follow the tutorial written by Jacques, it seems it’s a MUST to run
> step 2 but I don’t want to mess up what I have done so far.
> Any hint?
>
> Many thanks and have a nice day!
> Schumann
> +86-18001501800
>
>


Re: How to Create Plugin without loadDefault

2018-11-27 Thread Gil Portenseigne
Hello Schumann,

I believe what you are looking for is to load specific readers, to avoid
loading demo data.

./gradlew "ofbiz --load-data readers=seed"

This command will load all seed data, and thus security data of your
newly created plugin.

You could also use webtools webapp to load reader
(https://demo-stable.ofbiz.apache.org/webtools/control/EntityImportReaders)

Or directly the data files you want
(https://demo-stable.ofbiz.apache.org/webtools/control/EntityImport)

Enjoy !

Gil

Le mardi 27 nov. 2018 à 12:09:57 (+), Schumann Ye a écrit :
> Dear Gurus, dear Rishi, dear Jacques,
> 
> I’ve got a quick and easy question for you guys.
> How can I create Plugin (as shown in step 1 below) but without running step 2 
> below in order to show the newly created plugin in our production environment?
> Step 1: gradlew createPlugin -PpluginId=quality
> Step 2: gradlew loadDefault
> 
> As I follow the tutorial written by Jacques, it seems it’s a MUST to run step 
> 2 but I don’t want to mess up what I have done so far.
> Any hint?
> 
> Many thanks and have a nice day!
> Schumann
> +86-18001501800
> 


Re: How to Create Plugin without loadDefault

2018-11-27 Thread Jacques Le Roux

Hi Schumann,

Sorry I don't remember having wrote a such tutorial (maybe I updated it). Have 
you an URL?

Jacques


Le 27/11/2018 à 13:09, Schumann Ye a écrit :

Dear Gurus, dear Rishi, dear Jacques,

I’ve got a quick and easy question for you guys.
How can I create Plugin (as shown in step 1 below) but without running step 2 
below in order to show the newly created plugin in our production environment?
Step 1: gradlew createPlugin -PpluginId=quality
Step 2: gradlew loadDefault

As I follow the tutorial written by Jacques, it seems it’s a MUST to run step 2 
but I don’t want to mess up what I have done so far.
Any hint?

Many thanks and have a nice day!
Schumann
+86-18001501800