As I mentioned in my previous post
http://groups.google.com/group/clojure/browse_thread/thread/4bb9cfe0d3870c1e
If I put (ns ...
   (:require swank.swank))
in the beginning of the main file, the lein uberjar hangs after
copying files.
That's why I wanted to try a different approach.

Thank you,
Andrei

On May 14, 1:49 pm, Meikel Brandmeyer <m...@kotka.de> wrote:
> Hi,
>
> Am 14.05.2011 um 00:35 schrieb Trastabuga:
>
> > I(defn -main [& args]
> >  (do
> >    (require 'swank.swank)
> >    (swank.swank/start-repl 4006))
> >  (run-jetty main-routes {:port 8080 :join? false})
> > )
>
> You have to delay the resolution.
>
> (defn -main
>   [& args]
>   (require 'swank.swank)
>   (@(resolve 'swank.swank/start-repl) 4006)
>   (run-jetty main-route {:port 8080 :join? false}))
>
> Other than that, I agree with Jonathan. Why do you have to do that instead of 
> doing it the “usual” way?
>
> Sincerely
> Meikel

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to