Building NetBeans for Ruby

Posted on June 08, 2008

I’ve switched over to building my own netbeans instead of grabbing it from hudson. Once a day, I’ve got a cron job that does:

First, pull netbeans using mercurial:

hg clone http://hg.netbeans.org/main ~/dev/netbeans

Then set up this script to build it every day:

#!/bin/sh
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.13
export PATH=$JAVA_HOME/bin:$PATH
cd ~/dev/netbeans
hg pull
hg up
ant

In theory, you should be able to build netbeans with version 6, but it dies on me even with the -Dpermit.jdk6.builds=true option set.

I don’t bother to get a reduced version of netbeans with just the Ruby support.