One things I remember doing with older 1.5 --> 1.7 code was run a separate Jetty container and pass -noserver to the GWT Dev mode, so that I could control
(a) where the compiled JS files were and went to
(b) running a servlet separate from the hosted app was nice.
With the new in-IDE mode and the new browser plugin, I found it is almost there. Essentially, my issue I am resolving at the moment is a maven thing.
- I don't want the GWT Hosted mode to put compiled *.js files (etc) in my src/main/webapp. Primarily because this folder is in Source Control.
- My Maven compiler plugin writes out the WAR when i do mvn package.
- I want (1.) solved by having it splay out the Compiled files to target/some-ignorable-directory and use the magic Jetty ALIAS do-hickey to "combine" src/main/webapp and target/gwt-hosted-war.tmp
-war "${workspace_loc:sample-gwt-webapp/target}/gwt-hosted-war.tmp"But, that directory does not actually have the WEB-INF files in it.
How could I solve it:
- symlinks src/main/webapp/gwt/* to target/tmpfilder/gwt with Linux and Mac.. not portable to Windows .. except for linkd
- before starting the Jetty Container, copy the src/main/webapp to target/tmp-war/ .. not nice for code changes of running jetty in src/main/webapp
- Make changes to the dev classes .. (you can provide a new ServletContainer .. but only that .. and it's not in there where the checking is done)
- use the -noserver and use Jetty (I want to run just on JVM for debugging) ..
No comments:
Post a Comment