Help me to find best way for replacing version variable in my ui.xml
<gwt:HTML>
<span>Current version: ${version}</span>
</gwt:HTML>
Can i use Maven resourse plugin? Like this:
<resource>
<directory>src/main/java</directory>
<filtering>true</filtering>
<includes>
<include>**/*.ui.xml</include>
</includes>
</resource>
I think UIBinder is part of GWT client side code, and it compiled by gwt plugin. This plugin don't finds my ${version} variable and don't replace it.
You are correct, UIBinder templates are part of GWT client-side code and are compiled down to JavaScript.
The only ways I can think of to expose what version your app is running are:
EntryPoint
class, as a static final constant.There may be others but those are the first ones off the top of my head, in order from least to most effort involved.