On Tuesday, October 31, 2017 at 10:31:39 AM UTC+1, Martones wrote:
Hey guys,
I'm trying to migrate my app which looks like this :GWT 2.5.1 front, PHP back, no maven -> GWT 2.8.2 front, PHP back, maven with gwt-maven-plugin.I manage to mvn gwt:compile and mvn gwt:run-codeserver.I actually think I'm confused about how the SDM runs now in 2.7+ but here is what I was thinking :
- Run compile (optional ? ) via mvn gwt:compile
- Run code server via mvn gwt:run-codeserver
- Save the bookmarklet and compile via the popup on my gwt page
- re-compile on every code change manually
In 2.7+, you can do:
- Run code server with -launchDir pointing to the directory served by your server
(there's no other step, code server will automatically compile/recompile on page load)
With Mojo's plugin (you did notice the maintainer now "strongly encourage[s you] to use the new [plugin]" though, right? see https://gwt-maven-plugin.github.io/gwt-maven-plugin/ ), that's <launcherDir> and <webappDirectory>.
The only downside is that code server when run this way will overwrite the mymodule.nocache.js, so make sure you recompile the app before packaging/deploying (gwt-maven-plugin staleness check might be confused, so "mvn clean", or force recompilation with -Dgwt.compiler.force)
The third point is the one that isn't working anymore (was ok in 2.5.1). In the popup I have :mymodule : off This module doesn't have Super Dev Mode enabled.
Here is my module file: removed all the SDM lines that I understood are now useless, doesn't work anyway if I keep them :)
<module rename-to='mymodule'>
<!-- Inherits -->
<!-- ... -->
<!-- Entry point -->
<entry-point class="com.mycompany.mymodule.client.mymodule" ></entry-point>
<!-- paths -->
<source path='client' />
<source path='shared' />
<!-- SDM -->
<!-- <add-linker name="xsiframe"/>
<set-configuration-property name="devModeRedirectEnabled" value="true"/>
<set-property name="compiler.useSourceMaps" value="true"/> -->
<set-configuration-property name="CssResource.conversionMode" value="strict" />
</module>I'm serving my php page from a docker container on my localhost (so no HTTPS).Any help is much appreciated :)Ludovit
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment