Thursday, January 12, 2012

Re: how to find the path to image resources

@Source paths are resolved in the *classpath* (using ClassLoader.getResourceXxx), not the filesystem.

...but I don't understand what you're trying to do:
  1. src/main/webapp contains the files that can/will be served via HTTP (e.g. src/main/webapp/img/foo.png will be available at http://server/app/img/foo.png);
  2. ClientBundle *bundles* its resources itself (either as data: URIs in the CSS and/or JS, and/or as *.cache.* files next to the *.nocache.js)
Unless you have a very very specific use case, you should choose one way or the other.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/9uhW2i0vZbEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment