Thank you! Much appreciated.

It is, clearly, a pain in a tochas and an upgrade to the latest Jetty in the 
GWT default Superdev mode would be a better option.
Miss the time when debugging was done using the Firefox GWT plugin where you 
can just work with the code in the IDE.

Peter


On Jun 22, 2018, at 7:44 AM, Jens 
<[email protected]<mailto:[email protected]>> wrote:

I assume you have everything (client, shared server code) in the same project 
in IntelliJ. Then IntelliJ has likely already detected the Web Facet for your 
project. If not you have to add that Web Facet in the Project Structure 
configuration screen in IntelliJ. Make sure that Deployment Descriptor 
(web.xml) and Web Resource Directory (path to war folder) is correctly 
configured in the Web Facet.

Once you have done that you can create an artifact in the Project Structure 
configuration screen in IntelliJ. Choose Web Application (exploded) -> From 
Modules and select your GWT project. Then select the created artifact, select 
the Output Layout tab and remove GWT compiler output if IntelliJ has added it 
to the artifact automatically. If you don't do that, IntelliJ will do a real 
GWT compile each time you build the artifact. This is undesired if you use 
SuperDevMode during development. Also note the artifact output directory, you 
need that in your GWT / SuperDevMode run configuration and add the folder as 
DevMode parameter -war <folder of your exploded war artifact>. Once you do that 
and restart SuperDevMode, it will create a <module>.nocache.js file in your 
exploded war and copy all GWT public resources to it.

Next install/activate the Jetty integration plugin in IntelliJ. Create a new 
Jetty -> Local run configuration and at the top right click the configure 
button to add an application server. Select the unzipped jetty distribution you 
have downloaded and create the server. In the run configuration you have a 
deployment tab which allows you to add the artifact to jetty. At the bottom in 
the Before launch section you could also add build artifact task so that 
IntelliJ builds your artifact each time you start Jetty, however this is 
optional. If IntelliJ asks you to add the JMX module to Jetty then do it.

Now you should be able to launch SuperDevMode, then launch Jetty, and your app 
should be deployed on your custom jetty server. If you use GWT-RPC you might 
want to add -Dgwt.codeserver.port<port> to your JVM parameters of the Jetty run 
configuration, so that the GWT-RPC server part can download SourceMaps from 
SuperDevMode code server.

-- J.

--
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To post to this group, send email to 
[email protected]<mailto:[email protected]>.
Visit this group at 
https://groups.google.com/group/google-web-toolkit<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fgroup%2Fgoogle-web-toolkit&data=02%7C01%7Cpeter.gershkovich%40yale.edu%7C96c4cfcfd17d4e6b3dae08d5d8358d0f%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C636652646870461534&sdata=anGslIQfaSL4A1H3%2FXYcrhF0BOz6JxoSYswKTVa25%2BU%3D&reserved=0>.
For more options, visit 
https://groups.google.com/d/optout<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&data=02%7C01%7Cpeter.gershkovich%40yale.edu%7C96c4cfcfd17d4e6b3dae08d5d8358d0f%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C636652646870471534&sdata=3%2FhlGC7pYXNmCIqR4FMCh2dN70pNui%2B4SeEbkMqr%2Fis%3D&reserved=0>.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to