I've been trying to test the I18 features of UiBinder but I cannot
locate the generated properties file.
My procedure is this:
* Generate a new GWT 2.0 project called I18Test, with a package called
com.example
* Using the plugin, add a UiBinder asset called MainView to
com.example.client. I amended the generated code as follows:
<!DOCTYPE ui:UiBinder SYSTEM "
http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui"
ui:generateFormat='com.google.gwt.i18n.rebind.format.PropertiesFormat'
ui:generateKeys="com.google.gwt.i18n.rebind.keygen.MD5KeyGenerator"
ui:generateLocales="default">
<ui:style>
.important {
font-weight: bold;
}
</ui:style>
<g:HTMLPanel>
<ui:msg description="Hello message">Hello</ui:msg>,
<g:Button styleName="{style.important}" ui:field="button" />
</g:HTMLPanel>
</ui:UiBinder>
* As a quick hack just to get the panel to show, I just amended the
generated module entry point to add the following:
RootPanel.get("sendButtonContainer").add(new MainView("Click me"));
* When I run the app, everything appears okay. When I compile, I get
a message reporting that a file called
com.example.client.MainViewMainViewUiBinderImplGenMessages.properties
has been generated:
Compiling module com.example.I18Test
Scanning for additional dependencies:
generated://4B78699A3BEB50FB1BC134587BCF4F2F/com/example/client/MainView_MainViewUiBinderImpl.java
Computing all possible rebind results for
'com.example.client.MainViewMainViewUiBinderImplGenMessages'
Rebinding
com.example.client.MainViewMainViewUiBinderImplGenMessages
Invoking
com.google.gwt.dev.javac.StandardGeneratorContext@39f3bb
Generating
com.example.client.MainViewMainViewUiBinderImplGenMessages.properties
from MainViewMainViewUiBinderImplGenMessages_ for locale default
Compiling 6 permutations
Compiling permutation 0...
Compiling permutation 1...
Compiling permutation 2...
Compiling permutation 3...
Compiling permutation 4...
Compiling permutation 5...
Compile of permutations succeeded
Linking into C:\Users\lowec\workspace\I18Test\war\i18test.
Link succeeded
Compilation succeeded -- 29.125s
However, I cannot find this file anywhere! Are there any more steps
that I need perform to get at the file?
Cheers,
Chris.