Re: leiningen javac plugin

2010-01-01 Thread Phil Hagelberg
Saul writes: > Many thanks. This works for me and I find it useful. However, in a > perfect world: > > lein compile > > would also compile my java source code or call compile-java before > performing a compile. In fact in this perfect world: > > lein swank > > would download all dependencies, com

Re: leiningen javac plugin

2009-12-31 Thread Mark Derricutt
I normally bind the clojure-maven-plugin to the compile phase, so "mvn compile" does both a java and clojure compile. However, unlike the scala or groovy 'star compilers' its not one process/parse, the java compiler runs first, then the clojure. -- Pull me down under... On Thu, Dec 31, 2009 at

Re: leiningen javac plugin

2009-12-30 Thread Saul
On Dec 30, 8:46 pm, Rob Wolfe wrote: > Saul writes: > > Many thanks. This works for me and I find it useful. However, in a > > perfect world: > > > lein compile > > > would also compile my java source code or call compile-java before > > performing a compile. > If you mean something like Maven

Re: leiningen javac plugin

2009-12-30 Thread Rob Wolfe
Saul writes: > On Dec 9, 7:53 am, antoniogarrote > wrote: >> A quick and dirty hack to compile java files in clojure projects >> usingleiningen. >> >> >> Just run $lein compile-java to transforms 'src/**.java' into 'classes/ >> **.class' >> > > Many thanks. This works for me and I find it usefu

Re: leiningen javac plugin

2009-12-30 Thread Saul
On Dec 9, 7:53 am, antoniogarrote wrote: > A quick and dirty hack to compile java files in clojure projects > usingleiningen. > > > Just run $lein compile-java to transforms 'src/**.java' into 'classes/ > **.class' > Many thanks. This works for me and I find it useful. However, in a perfect worl

Re: leiningen javac plugin

2009-12-09 Thread liebke
This is exactly what I need! Unfortunately, I'm getting the following exception when I run the compile-java task. $ lein compile-java Exception in thread "main" java.lang.IllegalArgumentException: No method in multimethod 'as-file' for dispatch value: null at clojure.lang.MultiFn.getFn(Mu