|
|
Re: How do I build so I can test the UI [message #1718766 is a reply to message #1718681] |
Wed, 30 December 2015 00:15 |
Sebastian Janzen Messages: 5 Registered: November 2015 |
Junior Member |
|
|
For UI development, I set up my IDE with Eclipse Installer like in the Tutorial Kai mentioned.
Becuase Eclipse is not very good at WebDev, I then open the Web-Root of the UI I want to dev for in IntelliJ. Eclipse with openHAB just runs in the background and serves the UIs.
For e.g. classic ui I set configuration to prevent caching at java side. See distribution/openhabhome/conf/services/classicui.cfg where I set
org.eclipse.smarthome.classicui:disableHtmlCache=true
For the other UIs I have to look at tomorrow. PaperUI had a flag "-DwebDebug=true" in the past, I think that won't work anymore.
There may be also a flag in the run config, where you have to ensure, that your local files are served and not those from the targetplatform. Maybe I can just make a short video of that, it's hard to describe - at least at 1am.
Best
Sebastian
[Updated on: Wed, 30 December 2015 00:15] Report message to a moderator
|
|
|
|
|
|
Re: How do I build so I can test the UI [message #1718842 is a reply to message #1718829] |
Thu, 31 December 2015 02:13 |
Grady Duncan Messages: 10 Registered: December 2015 |
Junior Member |
|
|
Evening gents,
I updated both openHAB2 and ESH branches this evening. I am on the master branch of both repos. When I use maven to build openHAB2 I am still getting the same error.
Looking at the link Sebastian posted I went into eclipse and did, Run > Run Configurations... > Eclipse Application > openHAB_Runtime > Run and I got a successful build and was able to access localhost:8080 and see the openhab2 demo start screen and all 4 of the UIs!!
Sadly I still have a few questions. If the paperUI is not included in openHAB2 does this mean that I was able to build with ESH or does building with the runTime use the 'old' runtime but include all of the new stuff from ESH? I ask so I know what repo to be making changes in. When I make a change should I rebuild using the openHAB_Runtime option or is there a better/different way?
Thanks guys!
[Updated on: Thu, 31 December 2015 05:28] Report message to a moderator
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03075 seconds