antifuchs / aoi-swank-plugin

Simple Art of Illusion plugin that opens a Clojure Swank listener on port 4006

This URL has Read+Write access

antifuchs (author)
Tue Mar 31 12:05:58 -0700 2009
commit  e1a9d281b94d23d31d51451e2eb0186df9bcf0e2
tree    05075e7589a067b340068a66bfa5b6f6e0665462
parent  54d090e4530abf27d744549fa065adffb4721d2e
aoi-swank-plugin / README.markdown
100644 19 lines (14 sloc) 0.944 kb

This is a simple plugin for Art of Illusion. Also, it serves as an example for how to embed clojure in a large java system.

How to build

You'll need:

  • Art of Illusion
  • Emacs and these packages:
  • Slime (http://common-lisp.net/project/slime)
  • Clojure-mode (http://github.com/jochu/clojure-mode)
  • Swank-clojure (http://github.com/jochu/swank-clojure)

To build the plugin, follow these steps:

  1. Download Art of Illusion and install it somewhere.
  2. Edit build.properties to reflect the directory where you installed Art of Illusion. There should be a file called aoidir/ArtOfIllusion.jar.
  3. Type "ant" on the root directory and you'll get a file called Plugins/SwankRepl.jar
  4. Symlink this file to your Art of Illusion Plugins/ dir.
  5. Start AoI, and in Tools, select "Start Swank REPL". This will open a swank listener port on localhost:4006. You can M-x slime-connect to this port from emacs and then drive Art of Illusion. Yay!