Context
If I want Lein 1.7 to start out with a particular class loaded, I do:
:repl-init init.init
Now, instead of having lein load up a *.clj file, I want lein to do the equiv of “java Foo”, where Foo is classes/Foo.class
Question:
My project.clj look alike:
(defproject ...
:aot [Foo]
???? )
What do I put in ???? to make “lein repl” startup by executing “java Foo” ?
Thanks!
If I understand your question, you can still use :repl-init for this by having a call to the class you want pre-loaded in a namespace that gets loaded by the repl. in this example i’m using
printlnstatement as a standin for the setup you want done 🙂project.clj:
core.clj
compiling:
arthur@a:~/foooo$ lein compile
Compiling foooo.core
Compilation succeeded.
running:
or:
REPLing: