Re: AOT compilation of "dynamic" code

2008-12-01 Thread Juergen Gmeiner
On Dec 1, 2:53 pm, Rich Hickey <[EMAIL PROTECTED]> wrote: > Could you give some more information on the error you get (when log4j > is not found), especially a stack trace? And also some more > information on how your gjdv.logging macros work? Minimal example to produce the results: 3 libraries:

clojure-contrib build fails; ant does not like "path" element for jar

2008-12-05 Thread Juergen Gmeiner
Maverick:~/site/clojure/clojure-contrib gj$ ant -Dclojure.jar=../ clojure/clojure.jar Buildfile: build.xml - boring stuff snipped jar: BUILD FAILED /Users/gj/site/clojure/clojure-contrib/build.xml:62: The type doesn't support the nested "path" element. Total time: 1 second This work

Re: clojure-contrib build fails; ant does not like "path" element for jar

2008-12-05 Thread Juergen Gmeiner
Or better even: I think I'll have some more coffe :) --~--~-~--~~~---~--~~ 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, se

re-gsub improvement

2008-12-06 Thread Juergen Gmeiner
Hi List, a little thing I have grown quite fond of: (re-gsub #"\b(?:word|expr|whatever)\b" {"word" "A WORD" "expr" "An Expression" "whatever" "WHATEVER!"} "welcome to the united states of whatever") Patch at http://groups.google.at/group/clojure/web/re-gsub.

Re: Building clojure-contrib from source

2008-12-23 Thread Juergen Gmeiner
On Dec 23, 11:28 am, "Christian Vest Hansen" wrote: > You need a newer version of Ant. Or change to cheers, Juergen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group,

Re: re-gsub improvement

2009-01-03 Thread Juergen Gmeiner
On Dec 13 2008, 6:04 am, Chouser wrote: > Please send in your Contributor Agreement so this patch > can be checked in. Oops, almost missed this, sorry. I did send the CA and I am even listed as registered contributor now. No idea when that happened though, I am a bit distracted by RL at the mo

clojure.contrib.sql - Support DataSource in with-connection

2009-01-20 Thread Juergen Gmeiner
I've been using clojure for prototyping in JBoss and I found that clojure.contrib.sql does not currently support opening JDBC connections via a javax.sql.DataSource. So I propose the patch below. Cheers, Juergen diff --git a/src/clojure/contrib/sql.clj b/src/clojure/contrib/sql.clj index 75242

Re: clojure.contrib.sql - Support DataSource in with-connection

2009-01-21 Thread Juergen Gmeiner
On Jan 21, 4:12 am, "Stephen C. Gilardi" wrote: > On Jan 20, 2009, at 7:01 PM, Stephen C. Gilardi wrote: > > I've checked in an implementation for this. I confirmed that it > doesn't harm the jdbc url method of connecting, but I don't have a > DataSource setup to test the DataSource method. Juerg

Re: dorun and map

2009-02-28 Thread Juergen Gmeiner
On 25 Feb., 15:02, Stuart Sierra wrote: > I often find I need to do this when the mapping function depends on a > dynamic context, like an open stream or an SQL connection. I'm not > using side effects in this case, but I have to make sure that the > sequence is completely realized before leaving

Re: Exceptions using vimclojure - please help

2009-05-13 Thread Juergen Gmeiner
Hi Sigrid, I am not really qualified on this one because I am still happily using an old version of vimclojure/gorilla But I suspect that you are using some stripped down Vim that does not have the features required by vimclojure. I do remember some similiary errors on my mac when I tried using

The dreaded "Dont' know how to create ISeq from: Symbol"

2009-05-13 Thread Juergen Gmeiner
Hello everybody, sometimes the error messages from the compiler can be quite cryptic. This is nothing serious or ground-breaking, but I thought maybe it would be a good idea if we got clojure to tell us which symbol is incorrect? So I had a look at the code and it turns out this particular error

AOT compilation of "dynamic" code

2008-12-01 Thread Juergen Gmeiner
Hello, I am toying around with a logging wrapper for log4j that will fall back on java.util.logging when log4j is not present in the classpath. Currently, I have 2 implementation libararies gjdv.logging.log4j and gjdv.logging.javalog that wrap the corresponding java libraries. I have a 3rd libra

Re: AOT Compilation for Contrib

2008-12-01 Thread Juergen Gmeiner
Hello, > - javalog: wants some GLOBAL_LOGGER_NAME, which >    I can't find anywhere. So someone with more Java >    background wants to have a look? GLOBAL_LOGGER_NAME is Java 6. In Java 5, there is java.util.logging.Logger/global which is deprecated in Java 6. diff --git a/src/clojure/contri