HowTo: build La Clojure on OS X

Hi

I was trying to get a copy of La Clojure for either 9.0.2 or 9.0.4 on OS X, but it wasn't available from the plugin manager. I got it compiled on OS X and wanted to record what I did here for myself and anyone else this might help

  1. Open a terminal
  2. Get a copy of the sources using git clone git://git.jetbrains.org/idea/clojure-plugin.git
  3. Locate your copy of clojure and clojure-contrib; you'll need the path to the directories containing the jars
  4. You do not need to install the IntelliJ plugin development kit; a plain IntelliJ install will do
  5. Edit the clojure-plugin/clojure.properties file
    • Set idea.home to the IntelliJ .app directory; on my machine, idea.home=/Applications/IntelliJ\ IDEA\ 9.0.4.app
    • Note the backslashes to escape the spaces in the file name
    • Set clojure.lib and clojure.contrib to the path of the directory containing your clojure JAR files
      • I tested this with Clojure 1.2 final
    • Set the following properties (they may not be present in the current clojure.properties file)
      • clojure.plugin.version
      • build.number
      • these are strings which will be used to construct the final zip file name for the plugin
  6. From the command line, run 'ant' (ant clean first if you want to remove an old build)
    • the plugin will be created inside the dist/ subdirectory as a zip file, e.g. clojure-plugin/dist/clojure-intellij-bin-90x.0.zip
  7. Change directory to your ~/Library/Application Support/IntelliJIdea90
  8. From the command line, run unpack clojure-plugin/dist/clojure-intellij-bin-90x.0.zip
  9. Restart IntelliJ


Worked for me.


Patrick

0

Please sign in to leave a comment.