I have a version.txt included in the src/java/resources
> NAME=${name}
> VERSION=${version}
> BUILD_DATE=${timestamp}
The values are retrieved from the POM. My current project does not go the next
step of pushing the completed branch on "deploy" to a tagged release in
subversion. I have traditionally done release management via shell scripts and
have not migrated that aspect to Maven yet.
Tim
On Jun 11, 2013, at 1:17 PM, Joseph Lust <[email protected]> wrote:
> 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.
>
>
--
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.