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
- Open a terminal
- Get a copy of the sources using git clone git://git.jetbrains.org/idea/clojure-plugin.git
- Locate your copy of clojure and clojure-contrib; you'll need the path to the directories containing the jars
- You do not need to install the IntelliJ plugin development kit; a plain IntelliJ install will do
- 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
- 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
- Change directory to your ~/Library/Application Support/IntelliJIdea90
- From the command line, run unpack clojure-plugin/dist/clojure-intellij-bin-90x.0.zip
- Restart IntelliJ
Worked for me.
Patrick
请先登录再写评论。