Using growl with ant for build notifications

by kinabalu on March 25, 2006

Something that just struck me as handy, was Growl notifications for certain steps in the ant build process. If you’re doing something else, its always nice to see “Build completed”. I could go into a long process on how to create an ant plugin, integrate it with Growls’ Java bindings, and have a very tightly integrated plugin. But I won’t. Just install growlnotify from the Growl dmg, and use ant’s exec command with “Mac OS X” as an attribute, so the Windows folks won’t get unhappy error messages.

Here’s the little snippet of ant code:

<exec executable="/usr/local/bin/growlnotify" os="Mac OS X" logError="true">
<arg line="-m 'Build has been completed'"/>
</exec>

There seems to be a similar framework out there taking its inspiration from Growl, called Snarl.

Share this:
  • Digg
  • DZone
  • Facebook
  • Technorati
  • LinkedIn
  • del.icio.us
  • Google Bookmarks
  • E-mail this story to a friend!
  • TwitThis

Leave a Comment

Previous post:

Next post: