Wednesday, March 4, 2015

It should be registered via or entry in your .gwt.xml ?

I include a background image in a css file through a @sprite annotation and do get a warning (see subject and below) that it should be included in the gwt.xml gwt file.
How should this be done? The documentation still describes it like I use it below that results in a warning.
Details:

Css file:
@sprite .Bla {
  gwt
-sprite: "quickCheck";
}

And in the ClienBundle class it's included as:
 @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



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

No comments:

Post a Comment