For various reasons you need to know the revision of the GWT app code. For 
example to verify that the server API is not newer than the JS code (i.e. 
if you deploy GWT JS to a CDN).

Some common approaches which I find to be rather hackish:

   - Use Maven replacer to replace a sequence in a *source* file at the 
   validation stage and have that inlined into your GWT file at compile 
   (hackish)
   - Use Maven replacer or Maven war plugin filters to add the build number 
   to the index.html page, or a backend service (JS code still not 
   independently versioned, more API calls)
   - Hardcode it (don't hardcode things)

After two years, the best method I've see is to create a *code generator* to 
allow deferred binding of the build number. This however has always stuck 
me as massively overkill to add a number to a build artifact.


So, I was curious how others here have dealt with this common issue. 
Hopefully there is a simpler way.


Sincerely,
Joseph

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to