> > - Why are the post-linkers fed misleading content for the > <module>.nocache.js file Artifact that doesn't represent what will be the > file system content of that file? > > A production compile and SuperDevMode work different because SDM needs to load up-to-date code from the CodeServer and also tells the CodeServer to recompile the app when you reload the page. To do so SDM creates a special <module>.nocache.js file and stores it in our war/launcherDir folder so it will be deployed. There is no linking involved here, its a helper file that just has the same name as the file produced by GWT compilation later. When you reload the page that file will call the URL
http://localhost:9876/recompile-requester/<modulename> which produces some JS that reads some information of your browser, etc. and finally triggers the recompile on the SDM CodeServer by calling the URL http://localhost:9876/recompile/<modulename>?<list of computed deferred binding properties> When your app has been recompiled the JS from the recompile-requester will place a script tag into your host page pointing to the newly compiled/generated <module>.nocache.js file from the CodeServer. That file always lives under http://localhost:9876/<modulename>/<modulename>.nocache.js So when you open this URL in your browser you should see the content that you have added during the linking process, as thats the real file produced by the GWT compiler on each recompile. > - Is there any way to gain access to the Artifact that *actually > contains* the "fake" app server JS code that is written into > <module>.nocache.js so it can be modified? > > No as its not an Artifact that goes through the linking process. It is just a helper file directly written to disk by the CodeServer. You can see that here: https://gwt.googlesource.com/gwt/+/2.7.0/dev/codeserver/java/com/google/gwt/dev/codeserver/Recompiler.java#238 > > - How do I control the order of my post linker within the set of other > post linkers? I set it as a post linker with a pragma, but say I want it > to be the* last* post linker? > > According to http://www.gwtproject.org/doc/latest/DevGuideLinkers.html they are executed in reverse lexical order based on their name. -- J. -- 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/ab51112d-d3f0-4959-9f8c-d081cb313120%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
