FYI, here's a patch for this:
http://github.com/robi42/ringojs/compare/response-refactoring
BTW, while refactoring also got rid of the implicit skin resource
relative path resolution magic.
Feedback welcome.
-- Robi
Thanks! I haven't looked at it yet, but I'm very glad we didn't
release 0.6 this past week.
Hannes
> Feedback welcome.
>
> -- Robi
+1 for such a `module.resolve(path)` (`resolve` name making intended
usage a bit clearer than `resource`, IMHO; but would be fine with any
of the two).
-- Robi
> Hannes
>
>> -- Robi
>
Thanks. :)
-- Robi
> -g.
>
+1 for such a `module.resolve(path)` (`resolve` name making intended>
> The module.directory + path pattern once more reminded me we should
> introduce module.resolve(path) or module.resource(path) for locating
> resources relative to a module, as has been proposed on CommonJS I
> think multiple times.
>
> http://groups.google.com/group/commonjs/browse_frm/thread/a6fa11983eea9196/275d849e4cc57b88
>
> What do you think?
usage a bit clearer than `resource`, IMHO; but would be fine with any
of the two).
List<URL> urls = new ArrayList<URL>();
Set libJars = servletContext.getResourcePaths("/WEB-INF/lib");
for (Object jar : libJars)
{
try
{
urls.add(servletContext.getResource((String) jar));
}
catch (MalformedURLException e)
{
throw new RuntimeException(e);
}
}To unsubscribe from this group, send email to ringojs+u...@googlegroups.com.