Thursday, February 6, 2014

Re: Recompiled module is not served from codeserver



On Thursday, February 6, 2014 11:17:47 AM UTC+1, Marko wrote:
Thomas,

You are right! When I run "mvn process-resources" before hitting "DevMode On" for SuperDevMode then I can see the changes I made to a page. Also the file for sourcemaps is changed here: http://localhost:9876/sourcemaps/main/com/myapp/myapp-main/client/application/ApplicationPresenter.java

In your note you said: "because WEB-INF/classes is put in the classpath before src/main/java, having src/main/java declared as a <resource> would conflict with it;". Now, I don't want to run "mvn process-resources" every time. What do you suggest?

Your IDE should do it for you (M2Eclipse does it –or the equivalent– every time you change a resource), but that should only be needed for non-src/main/java code.
For src/main/java, simply don't declare it as a <resource> so that WEB-INF/classes don't contain *.java files and thus don't shadow src/main/java which is added in the classpath by the gwt-maven-plugin. Declaring src/main/java as a <resource> might be useful, but only if you filter your sources, that's an edge case.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment