Could a team developer please update the SimpleResourceLocator javadoc to document the rather unusual requirement that the specified baseDir must end with slash. Wouldn't be needed if the resulting errors indicated the source of the problem. Unfortunately, the individual lookups fail with an error messages indicating that the problem is with accessing the individual resource, even though the SimpleResourceLocator object is useless and will fail for all lookups. (Java… and for that matter UNIX and Windows shells… consistently permits directories to be specified with no trailing delimiter).
… and also the fact that you cannot specify to use the CLASSPATH root. ("/" throws, and "" doesn't work… probably defaulting to the classloader package). This is probably a consequence of doing Classloader resource lookups instead of Class resource lookups. Could be an acceptable limitation, but it should be documented.
Hmm, is it really a bug in SimpleResourceLocator though? We take in a URI and then use the URL constructor URL(URL context, String spec) to make our resource URLs. Maybe you could explain further?
I concur. Wish I re-read my own post the next day. Sorry 'bout that. Sleep deprivation.