@sprite .Bla {
gwt-sprite: "quickCheck";
}
@Source("quickCheck.jpg")
ImageResource quickCheck();
And get the following console warning:
As a result changes in that resource will not be reflected in per-file recompiles. It should be registered via <source /> or <resource /> entry in your .gwt.xml. In a future version of GWT, we will remove this fallback and your application will stop compiling
@Source("quickcheck.jpg")
ImageResource quickCheck();I just noticed this isn't the same as the code that I posted above, which surprised me. No idea why, maybe wrong copy/paste during changing or typed it wrong, can't remember.
Only the gwt error in the console is a bit misleading (and that it could find the file anyway, on a Mac).
Thanks for the help, sorry for the stupid mistake (after correcting the file name, the error message disappeared).
The content of element type "module" must match "(inherits|source|public|super-source|entry-point|stylesheet|script|servlet|replace-with|generate-with|define-property|extend-property|set-property|set-property-fallback|clear-configuration-property|define-configuration-property|extend-configuration-property|set-configuration-property|property-provider|define-linker|add-linker|collapse-all-properties|collapse-property)*".
It doesn't look like <resource /> is a possible Element type in GWT 2.7?I can add <source />, but when I add a <resource />...The content of element type "module" must match "(inherits|source|public|super-source|entry-point|stylesheet|script|servlet|replace-with|generate-with|define-property|extend-property|set-property|set-property-fallback|clear-configuration-property|define-configuration-property|extend-configuration-property|set-configuration-property|property-provider|define-linker|add-linker|collapse-all-properties|collapse-property)*".Unless I'm missing it, I don't see resource in that list, which seems to be why I can't add a <resource \>. Unless I'm missing something?