Baishampayan Ghose <b.gh...@gmail.com> writes:

>>> Why do you ask?  Is there some particular functionality you are
>>> interested in?
>>
>> Well, I'm just learning too. Currently I rely on lein swank to start
>> up my JVM so that slime can connect to it. CDT seems to want you to
>> manually start up the JVM with a particular set of flags. So, do you
>> therefore use two JVM instances?
>>
>> I guess I could do with sitting and pairing for 10 mins to see how
>> things work ;-)
>>

If you find a good solution to this please do share.

>>
>> Is there any chance you could record a short screencast of this stuff
>> in action?
>
> Leiningen honours the JAVA_OPTS environment variable. If you do this -
>
> $ export 
> JAVA_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8021"
> $ lein swank
>
> Then lein will start the JVM with the required flags. After that,
> there is no reason why CDT shouldn't work.
>

Is there any way to pass java_opts arguments to lein on the command
line?

Currently I use the :jvm-opts keyword in project.clj, however it would
be nice to be able to specify different argument when using different
tools as mentioned in the thread above, or to be able to set different
values (e.g. maximum heap sizes) depending on resources of the current
computer.

Is there an accepted way to handle these situations?  If not would this
make a good item for future lein development?

Thanks -- Eric

-- 
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