Re: Any suggestions for configuration solution in Clojure or Java world?

2013-06-17 Thread Dick Davies
I glanced at this a while back - does carica support java -jar myuberjar.jar config.clj type invocation, or is it strictly "compile the config in" a la bundle into the class path? I generally ship the same uberjar around for prod/dev/etc. along with a per-environment config.clj file, and that se

Re: CLI sub-commands in an uberjar?

2013-05-12 Thread Dick Davies
t [fsymbol (binding [*read-eval* false] > (read-string fstr))] > (when-not (#{'println 'str 'list} fsymbol) > (throw (Exception. "Invalid function"))) > (apply (eval fsymbol) args))) > > > Marc > > > > On Sun

Re: CLI sub-commands in an uberjar?

2013-05-12 Thread Dick Davies
Nice one, looks pretty dead on. On 12 May 2013 14:07, Ray Miller wrote: > On 12 May 2013 10:37, Dick Davies wrote > >> >> I've got a half-decent utility written that i want to provide to our >> ops team (and not let them know it's Clojure based ssshhh)

CLI sub-commands in an uberjar?

2013-05-12 Thread Dick Davies
Hi all I've got a half-decent utility written that i want to provide to our ops team (and not let them know it's Clojure based ssshhh). Works great with 'lein run -m thingy.core/fn1 arg', but there are several functions I want to expose as 'subcommands' e.g. java -jar thingy.jar fn1 arg

Re: Confused about comp

2012-12-17 Thread Dick Davies
On 16 December 2012 10:59, Peter West wrote: > This effect is, on the face of it, unpredictable: you just have to know that > that is what apply does. Users of clojure learn that pretty quickly. I've > just learned it. Doc doesn't help. > >>> user=> (doc apply) If you're using leiningen (2 at l

Re: feeding leiningen a local JAR file

2012-11-21 Thread Dick Davies
Thanks, that's helpful to know (I was a java dev a long time ago, before Maven took over the world), but really I wanted to isolate this hack to a specific project directory, rather than globallly. On 21 November 2012 12:00, Jim foo.bar wrote: > On 21/11/12 11:47, Dick Davies wrote: &g

Re: lein 2.x not working on Mac OS X 10.7.5 -- Exception in thread "main" java.lang.ClassNotFoundException:

2012-11-21 Thread Dick Davies
Glad it's not me who keeps hitting this :0 "lein new app hello" seems to be more helpful for setting you up as I'd expect, just need to wait for my fingers to learn to type it now. On 14 November 2012 21:44, Marek Šrank wrote: > Yep, leiningen now doesn't create -main function in the default tem

feeding leiningen a local JAR file

2012-11-21 Thread Dick Davies
I've got a couple of projects that need a newer version of a JAR than is available in Maven. Is there any support/syntax in project.clj that will allow me to point at a local JAR file? Also, is it possible to 'override' a given dependency to favour a local JAR over the 'official' maven one? [ sp

Re: webnoir on openshift (Paas by RedHat), little guide

2012-09-06 Thread Dick Davies
Heroku was pretty painless (so long as your project/app is git based). https://devcenter.heroku.com/articles/clojure On 3 September 2012 21:22, Simone Mosciatti wrote: > Yes, I know it is an issue, but I didn't really find any other PaaS (free to > start) without such problem... > > > On Monday,