Monday, April 28, 2014

GWT compiler produces different hashes for .cache.html files on each compile

I am having issues when deploying a GWT application to nodes behind a load balancer. Each node checks out and compiles the same branch, and thereby the same source code, but the the strong names for .cache.html files are different on each node. 

So I created a blank project in eclipse and compiled it multiple times without changing the source code to replicate this issue locally, and it can be reproduced. According to the FAQ, this should not be the case (see below). But maybe this behaviour has changed over time?

Compiler version is GWT 2.6.0

They are named according to the MD5 sum of their contents. This guarantees deterministic behavior by the GWT Compiler: if you recompile your application without changing code, the contents of the output will not change, and so the MD5 sums will remain the same.

--
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/d/optout.

No comments:

Post a Comment