You can always reference resources in ClientBundle using relative paths. Doesn't matter if its in src/main/java or src/main/resources.
-- src/main/java/com/example/client/MyClientBundle.java
src/main/(java | resources)/com/example/client/std.gss
=> you can use @Source("std.gss") or completely omit it if your method is named std().
I only use absolute paths for CSS files I import, e.g.
@Source( { Constants.CSS_FILE, "std.gss" }) with CSS_FILE being absolute
-- J.
You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment