Speed work in developer mode

He we will discuss about how to make customization and improvement to the OpenKM source code.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
sgarcia
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: Fri Apr 07, 2017 7:59 am

Speed work in developer mode

Post by sgarcia » Fri Apr 14, 2017 6:24 pm

Hi

I download the OpenKM portable Dev and i updated to 6.3.3 from Git repo.

I have not worked with this system and I do not know what is the fastest way to compile.

Try with frontent screens to check the use, change values and use "Build openkm 6.3" with: clean gwt:compile compile war:exploded.

But waste several minutes to finish.

What is the best method to test without compiling the entire project? If it exists.

Thanks

jllort
Moderator
Moderator
Posts: 9193
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Speed work in developer mode

Post by jllort » Sat Apr 15, 2017 7:45 am

What consumes a lot of core's and ram if GWT compilation for all the browsers. You can save a lot of time compiling only for firefox or chrome. Here is explained how doing it:
https://docs.openkm.com/kcenter/view/ok ... ermutation

If you are making only frontend changes, then I suggest do not compile the entire project for each change. In this scenario have two options:
1- Compile only GWT ( will take some time ) take a look here https://docs.openkm.com/kcenter/view/ok ... romeclipse
2- Enable remote debug ( super dev mode or GWT Shell ). Althought plugin for GWT shell is discontinued in new browsers, using older firefox you can take it running ( I think portable edition comes with portable firefox with this plugin into ). Take a look here https://docs.openkm.com/kcenter/view/ok ... rinterface

You can take a quick look at this documentation section https://docs.openkm.com/kcenter/view/ok ... pment.html

We are now working in release a new development environment based in virtual machine ( OVA ) what we think will be more confortable and portable rather existing zip.

sgarcia
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: Fri Apr 07, 2017 7:59 am

Re: Speed work in developer mode

Post by sgarcia » Sun Apr 16, 2017 8:53 am

I am testing with one permutation using this property in main.gwt.xml
<!-- Compile for Firefox only -->
<set-property name="user.agent" value="gecko_18"/>
From this help page : https://docs.openkm.com/kcenter/view/ok ... ermutation

I think this is an error, and the correct property is :
<!-- Compile for Firefox only -->
<set-property name="user.agent" value="gecko1_8"/>
Like GWT agent list say :

https://gwt.googlesource.com/gwt/+/mast ... nt.gwt.xml

Thanks

jllort
Moderator
Moderator
Posts: 9193
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Speed work in developer mode

Post by jllort » Sun Apr 16, 2017 9:37 am

Thanks, I have corrected the mistake in the documentation.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest