On Fri, Apr 16, 2021 at 3:12 PM Vassilis Virvilis <[email protected]> wrote:

> That's great news to hear. Is there any doc about this?
>

It's been there since 2.7, *checks notes* more than 6 years ago.
Either pass `-launcherDir` to CodeServer, or use DevMode, which defaults to
using that (legacy DevMode has to be explicitly reenabled through
-nosuperDevMode)
See http://www.gwtproject.org/articles/superdevmode.html


> How does it know when to switch between codeserver and production code?
>

A stub nocache.js file is generated (overwriting your production one if you
use the same dir) that will trigger a recompile on the CodeServer and load
the generated script, similar to clicking the bookmarklet.

What we're talking about here is more or less about removing DevMode "as we
know it" that directly serves a web app following the "exploded WAR"
layout, and only keeping the CodeServer; or possibly serve static files
from DevMode but no longer host servlets et al.
The issue here is conflicts between Jetty/DevMode and the project's
server-side dependencies in the classpath (due to a project with mixed
client and server code, and the fact that we have a custom
WebAppClassLoader that loads from both the WEB-INF/classes+WEB-INF/lib and
the classpath), and even conflicts between Jetty and the WEB-INF/lib, and
of course issues with the version of ASM from GWT used by Jetty to scan the
webapp classloader when it encounters module-info.class files.

-- 
Thomas Broyer
/tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAEayHEMoy2bfbATDMstqUsmS88Zg0N8w1bYatdgwZrOYtJtbPQ%40mail.gmail.com.

Reply via email to