Page 1 of 1
Compiling openKM source code is very time consuming
PostPosted:Thu Jul 19, 2018 5:44 am
by mamad
Hi guys,
I'm new to Openkm development.
Currently i'm using eclipse in Linux (mint virtual machine(ova) with vmware) for developing and extending openKm
Problem is that every time i make even little changes in source code, i have to recompile openKM and openKM GWT and also i have to restart tomcat server to see changes
This process takes between 1-3 minutes(compiling openKM GWT takes most of time) and its very time consuming and makes me tired.
Is there any way to reduce this time ???
Re: Compiling openKM source code is very time consuming
PostPosted:Thu Jul 19, 2018 9:56 am
by lnovoa
Hi!,
For a modification of the code for example in the core of openkm you must compile OpenKM,
but if you make a modification in the GWT frontend, you only have to compile GWT,
you do not have to do the two types of compilations.
Re: Compiling openKM source code is very time consuming
PostPosted:Fri Jul 20, 2018 8:08 am
by jllort
Also I suggest enable only a permutation for a single browser what will reduce the number of core used in your computer
https://docs.openkm.com/kcenter/view/ok ... ermutation
Re: Compiling openKM source code is very time consuming
PostPosted:Sun Jul 22, 2018 5:02 am
by mamad
Hi and thanks for your Reply
lnovoa wrote: ↑Thu Jul 19, 2018 9:56 am
Hi!,
For a modification of the code for example in the core of openkm you must compile OpenKM,
but if you make a modification in the GWT frontend, you only have to compile GWT,
you do not have to do the two types of compilations.
Are you sure about it ? because every time i change one of java files , for example Helloworld.java (that extends TabDocumentExtension) , i have to recompile OpenKM GWT and there will be no changes in output until I recompile OpenKM GWT
Re: Compiling openKM source code is very time consuming
PostPosted:Sun Jul 22, 2018 5:06 am
by mamad
jllort wrote: ↑Fri Jul 20, 2018 8:08 am
Also I suggest enable only a permutation for a single browser what will reduce the number of core used in your computer
https://docs.openkm.com/kcenter/view/ok ... ermutation
Hi and thanks you too for your reply
When i try to open the specified link in your comment, i face with a login page that wants me an Application UUID and an Authorized email.
what are these fields ?
Re: Compiling openKM source code is very time consuming
PostPosted:Mon Jul 23, 2018 7:08 am
by jllort
Sorry I shared to you the 6.4 documentation link, when really I wanted to share 6.3
https://docs.openkm.com/kcenter/view/ok ... ermutation
Re: Compiling openKM source code is very time consuming
PostPosted:Mon Jul 23, 2018 11:45 am
by lnovoa
Hi mamad!,
I think that you have not understood me.
If you make a change in the fronted you simply have to run the openkm gwt (the HelloWord.java class is in the frontend).
If you want to compile the complete project, run the openkm and make sure you have the
OpenKM -> Goals: clean package or clean package install