Search code examples
javagwthotswapgwt-super-dev-modegwt-dev-mode

Does GWT 2.6 Super Dev Mode supports hot swap (recompile) and how?


Recently I started to use Super Dev Mode to get look&feel of it. It took me couple of hours to get it up but I didn't find out how and actually can you use SDM for faster development using hot swapping. Using Dev Mode all I had to do is save my changes in IDE and refresh the browser page. Now my code changes needs to get transferred to the code server to be recompiled? Am I right or am I missing something obvious?


Solution

  • All you have to do is click the DevMode On bookmarklet and Compile button. This is for client-side code only though.

    For server-side code, whereas DevMode can serve your webapp and you can reload it with a single click to get your changes in, CodeServer only deals with the client side, so you have to deploy your webapp to a server (that said, you can use DevMode if you want). You then need to re-deploy your webapp when you make changes to your server-side code.

    See https://stackoverflow.com/a/18333050/116472 for a detailed step-by-step howto.