2015-02-27 14:29 GMT+01:00 Sean Corfield <[email protected]>:

> On Feb 27, 2015, at 12:09 AM, Cecil Westerhof <[email protected]>
> wrote:
>
> In my application I have a quit button which does:
>     (System/exit 0)
>
> But when I used 'lein repl' I do not want to exit, but just close the
> frame. Can this be done?
>
>
> Here’s how we do it. Add the following to project.clj:
>
>   :profiles {:repl {:jvm-opts ~(conj (jvm-opts)
> "-Dlein.profile.repl=true")}}
>


​That gives:
java.lang.Exception: Error loading /home/cecil/Clojure/quotes/project.clj
        at leiningen.core.project$read$fn__3326.invoke(project.clj:696)
        at leiningen.core.project$read.invoke(project.clj:693)
        at leiningen.core.project$read.invoke(project.clj:703)
        at leiningen.core.main$_main$fn__3092.invoke(main.clj:294)
        at leiningen.core.main$_main.doInvoke(main.clj:290)
        at clojure.lang.RestFn.invoke(RestFn.java:408)
        at clojure.lang.Var.invoke(Var.java:415)
        at clojure.lang.AFn.applyToHelper(AFn.java:161)
        at clojure.lang.Var.applyTo(Var.java:532)
        at clojure.core$apply.invoke(core.clj:617)
        at clojure.main$main_opt.invoke(main.clj:335)
        at clojure.main$main.doInvoke(main.clj:440)
        at clojure.lang.RestFn.invoke(RestFn.java:436)
        at clojure.lang.Var.invoke(Var.java:423)
        at clojure.lang.AFn.applyToHelper(AFn.java:167)
        at clojure.lang.Var.applyTo(Var.java:532)
        at clojure.main.main(main.java:37)
Caused by: java.lang.RuntimeException: Unable to resolve symbol: jvm-opts
in this context, compiling:(/home/cecil/Clojure/quotes/project.clj:9:38)

-- 
Cecil Westerhof

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to