Don't Forget to Plant It!

Growl Notifications for Ant

It’s a real refreshing change to be doing developing on Mac these days.  Currently, our Ant builds at work are less than optimal, taking ten’s of minutes to do a full build.  Fixing it is something we definitely want to do, but because of the complexity of the build and existing deadlines, right now isn’t the best time.  So instead of constantly checking on the progress of my build, I installed this Growl Ant build listener which will display a Growl notification when a build has completed.

The README for the listener got me started - the only thing that didn’t work for me is setting the build listener using the ANT_OPT environment variable.  It looks like the default install of Ant on Leopard uses that environment variable as arguments to pass to the Java VM.  So instead, I just used an alias:

alias ant='ant -listener net.slimeslurp.growl.GrowlListener'

Just add this line to your ~/.bash_login to use the build listener every time you build.