Have a look at this code. It might shed some light on your problem.
https://github.com/lprefontaine/Boing/blob/1.3.0/src/boing/resource.clj
We are using it with 1.3 but it should work under 1.5.x
Feel free to copy it and try it, it's standalone without dependencies other than
Clojure.
As far as
tried both... nothing worked... :(
Jim
On 26/04/13 20:16, Jonathan Fischer Friberg wrote:
Did you put "/" at the beginning of the string to resource? Because
you shouldn't.
You should call it like this: (resource "foo.xml").
Jonathan
On Fri, Apr 26, 2013 at 8:47 PM, Jim - FooBar();
Did you put "/" at the beginning of the string to resource? Because you
shouldn't.
You should call it like this: (resource "foo.xml").
Jonathan
On Fri, Apr 26, 2013 at 8:47 PM, Jim - FooBar(); wrote:
> Hello everyone,
>
> I hope you're all doing well...
>
> Can anyone enlighten my as to why I
Hello everyone,
I hope you're all doing well...
Can anyone enlighten my as to why I cannot read anything from the top
directory of a jar? The jar in question is on the classpath and the
foo.xml file is located at the top directory...tries
clojure.java.io/resource tried .getResourceAsStream f