Based on the Embedding section of http://github.com/technomancy/swank-clojure,
I'm using the following to test it out.  Is there a better way to do
this that doesn't use Compiler?  Is there a way to programmatically
stop swank?  It seems start-repl takes control of the thread.  What
would be a good way to spawn off another thread for it and be able to
kill that thread programatically.

import clojure.lang.Compiler;
import java.io.StringReader;

public class Embed {
    public static void main(String[] args) throws Exception {
        final String startSwankScript =
            "(ns my-app\n" +
                "  (:use [swank.swank :as swank]))\n" +
                "(swank/start-repl) ";
        Compiler.load(new StringReader(startSwankScript));
    }
}

Any help much appreciated,

hhh

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