Page 1 of 1

Building openkm.war

PostPosted:Wed Jun 07, 2017 4:56 am
by Beau_M
I'm clearly not doing something correctly here. I've set up eclipse, maven and git, no issues there. Edited a few src files and rebuilt the war file, but doesn't seem to matter what I do, the changes aren't being reflected in openkm (at least nothing that I modify inside of java files, the jsp's are updating fine). I'm doing things a bit manually, all dev work is being done on one computer and then the war file is being transferred manually to our server and the old files are removed and catalina restarted etc. I've obviously set something a bit wrong in eclipse but have no idea where to start looking. Any ideas or suggestions would be greatly appreciated. Using the latest portable dev download but on a fresh latest eclipse install.

Re: Building openkm.war

PostPosted:Wed Jun 07, 2017 5:52 pm
by jllort
Are you using portable dev ? or you configured your own eclipse ?

Re: Building openkm.war

PostPosted:Thu Jun 08, 2017 1:07 am
by Beau_M
I've tried both, the portable dev version didn't run nicely on our machine so rebuilt the project in the latest eclipse. Both seem to build fine just don't reflect any changes.

Re: Building openkm.war

PostPosted:Sun Jun 11, 2017 7:35 am
by jllort
You are applying changes in core or in UI. Did you tryed to debug ?

I suugest read https://docs.openkm.com/kcenter/view/ok ... -tips.html from "Configuring IDE from a clean Eclipse" until "Development tips"

Re: Building openkm.war

PostPosted:Tue Jun 13, 2017 3:19 am
by Beau_M
I'm trying to apply changes to the UI, we're trying to remove some of the property information such as UUID and webdav etc. Trying to make the screen as clean as possible for our users (they don't like to be confronted with too much information apparently). I've made some changes in Folder and TopPanel, just commenting out the things I didn't want but this seems to do nothing?

Re: Building openkm.war

PostPosted:Wed Jun 14, 2017 6:43 pm
by jllort
Some UI configuration might be hidden with profiles I suppose this features are not there. If you add there with same philosophy we can add as part of OpenKM core. We'll I suggest a simply Window.alert("I'm here"); in the Main.java class to be sure the code is really changed.

Also I suggest do widget unvisible with method setVisible(false); is more easy rather comment code, and this is also the philosophy used with profiles.

Re: Building openkm.war

PostPosted:Thu Jun 15, 2017 3:29 am
by Beau_M
Adding Window.alert("I'm here"); anywhere in Main.java doesn't do anything when the war is built. Very confusing that it's not picking up any code changes from the source.

Re: Building openkm.war

PostPosted:Sat Jun 17, 2017 8:52 am
by jllort
Ensure the war is build into target.
Ensure you are deploying the OpenKM.war into webapps folder ( I suggest clean this folder, before copying the file )

Re: Building openkm.war

PostPosted:Wed Jun 21, 2017 12:30 am
by Beau_M
Thanks for all the help jllort, turned out I was forgetting to build the front end... I thought clean gwt:compile compile install would have done everything, but I needed a separate build for the front end clean gwt:compile -Dgwt.module=com.openkm.frontend.Main. Must be the way I've set up Eclipse on our system, at least it's working now.