'lo, Well I just got a very very basic clojure program working from OSGi (Apache Felix), although its not yet as I'm still seeing some weirdness, but hopefully I should have something to write about in the morning, anyway, I had to patch clojure's RT class slightly in order to get it to work:
diff --git a/src/jvm/clojure/lang/RT.java b/src/jvm/clojure/lang/RT.java index 502f00d..2e6e01b 100644 --- a/src/jvm/clojure/lang/RT.java +++ b/src/jvm/clojure/lang/RT.java @@ -348,8 +348,7 @@ static public long lastModified(URL url,String libfile) throws Exception{ } else { - File f = new File(url.toURI()); - return f.lastModified(); + return url.openConnection().getLastModified(); } } @@ -1685,7 +1684,7 @@ static public int alength(Object xs){ } final static private Object EOS = new Object(); - + final static public Object eos() { return EOS; } Basically, felix returns classpath entries of bundle://xxxx rather than jar: - and as URLConnection has a getLastModified() method, delegating to that rather than File#lastModified() seems to work. ...and then Buffy staked Edward. The End. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---