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(MultiFn.java:115)
at clojure.lang.MultiFn.invoke(MultiFn.java:157)
at clojure.contrib.java_utils$file__565.invoke(java_utils.clj:86)
at leiningen.compile$find_lib_jars__1085.invoke(compile.clj:29)
at leiningen.compile_java$lib_path__543.invoke(compile_java.clj:15)
at leiningen.compile_java$compile_java__546.invoke(compile_java.clj:
21)
at clojure.lang.Var.invoke(Var.java:359)
at clojure.lang.AFn.applyToHelper(AFn.java:173)
at clojure.lang.Var.applyTo(Var.java:476)
at clojure.core$apply__4379.invoke(core.clj:436)
at leiningen.core$_main__4685.doInvoke(core.clj:38)
at clojure.lang.RestFn.invoke(RestFn.java:415)
at clojure.lang.AFn.applyToHelper(AFn.java:173)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at leiningen.core.main(Unknown Source)
Poking around a bit, it looks like it might have something to do with
the :library-path value that is passed to Leiningen being null.
David
On Dec 9, 2:53 am, antoniogarrote <[email protected]>
wrote:
> A quick and dirty hack to compile java files in clojure projects using
> leiningen.
>
> The clojar is athttp://clojars.org/, the source code
> at:http://github.com/antoniogarrote/lein-javac
>
> Just run $lein compile-java to transforms 'src/**.java' into 'classes/
> **.class'
>
> I hope someone find it useful.
>
> Cheers!
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en