Browse files

add :repl-options :init into headless startup

  • Loading branch information...
1 parent 5893c14 commit d576345488ecd0124967ec8cfe916d2b34aded35 @kingtim kingtim committed Oct 11, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/leiningen/repl.clj
@@ -58,6 +58,7 @@
:bind ~host :port ~port :ack-port ~ack-port
:handler ~(handler-for project))
port# (-> server# deref :ss .getLocalPort)]
+ (do ~(if headless? (-> project :repl-options :init)))
(println "nREPL server started on port" port#)
(spit ~(str (io/file (:target-path project) "repl-port")) port#)
(.deleteOnExit (io/file ~(:target-path project) "repl-port"))

0 comments on commit d576345

Please sign in to comment.