I'm using Leiningen 1.4.0-SNAPSHOPT and running 'lein compile' fails with:
mars:http.async.client matt$ lein compile
Warning: problem requiring hooks: java.lang.NoSuchMethodError:
clojure.lang.RestFn.<init>(I)V (javac.clj:1)
...continuing without hooks completely loaded.
Exception in thread "main" java.lang.IllegalArgumentException:
No matching field found: getCommandLine for
class org.apache.tools.ant.taskdefs.Java (NO_SOURCE_FILE:0)
at clojure.lang.Compiler.eval(Compiler.java:5440)
at clojure.lang.Compiler.eval(Compiler.java:5391)
at clojure.core$eval.invoke(core.clj:2382)
at clojure.main$eval_opt.invoke(main.clj:235)
at clojure.main$initialize.invoke(main.clj:254)
at clojure.main$script_opt.invoke(main.clj:270)
at clojure.main$main.doInvoke(main.clj:354)
at clojure.lang.RestFn.invoke(RestFn.java:458)
at clojure.lang.Var.invoke(Var.java:377)
at clojure.lang.AFn.applyToHelper(AFn.java:174)
at clojure.lang.Var.applyTo(Var.java:482)
at clojure.main.main(main.java:37)
Caused by: java.lang.IllegalArgumentException:
No matching field found: getCommandLine for class
org.apache.tools.ant.taskdefs.Java
at clojure.lang.Reflector.getInstanceField(Reflector.java:245)
at clojure.lang.Reflector.invokeNoArgInstanceMember(Reflector.java:267)
at leiningen.compile$get_readable_form.invoke(compile.clj:116)
at leiningen.compile$eval_in_project.doInvoke(compile.clj:169)
at clojure.lang.RestFn.invoke(RestFn.java:465)
at leiningen.compile$compile.invoke(compile.clj:197)
at clojure.lang.Var.invoke(Var.java:365)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.Var.applyTo(Var.java:482)
at clojure.core$apply.invoke(core.clj:542)
at leiningen.core$apply_task.invoke(core.clj:158)
at leiningen.core$_main.doInvoke(core.clj:214)
at clojure.lang.RestFn.applyTo(RestFn.java:138)
at clojure.core$apply.invoke(core.clj:540)
at leiningen.core$_main.invoke(core.clj:219)
at user$eval168.invoke(NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:5424)
... 11 more
I'm running currently 1.3.1 of leiningen.
I guess problem is with my own javac task, this should be included in leiningen 1.4.0.
Will look into it soon.
I'm using Leiningen 1.4.0-SNAPSHOPT and running 'lein compile' fails with: