Ack ...

What about a simple build timestamp?



On 06/16/2014 03:15 PM, Joseph Lust wrote:
@Michael, welcome the the Chicken and the Egg problem.

In order to build the build number (I'm assuming you mean rev number from git/svn), you've first got to commit that code. Then, you've got be build it, but the code never had the commit number in it, since it could not be known pre-commit.

To get around this in the past I have used either of the following:

  * Written a GWT compiler plugin to generate the impl of a
    BuilderNumberProvider class. This plugin grabbed the rev # from
    Maven then then wrote and compiled an extra class with that value
    in it.
  * Copied the build number into the WAR and then injected it into the
    app page (i.e. jsp) and had GWT read it via JSNI at the EntryPoint.


Hope that helps.


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

--
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to